This commit is contained in:
2024-12-12 01:07:26 +08:00
parent 2667419d98
commit 3fcff0598a
55 changed files with 1861 additions and 964 deletions
@@ -4,6 +4,8 @@ namespace AibisDream.Framework
{
public interface IMoveable
{
bool IsBlock { get; }
void StartMove();
void Move(Vector2 mousePos);
@@ -41,6 +41,7 @@ namespace AibisDream.Framework
{
_dragObj = hit.collider.gameObject.GetComponent<IMoveable>();
if (_dragObj == null) return;
if (_dragObj.IsBlock) return;
_dragObj.StartMove();
_offset = hit.collider.transform.position - GetMouseAsWorldPoint();