You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
716 B
24 lines
716 B
3 years ago
|
using System;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace ET
|
||
|
{
|
||
|
public class MapUnitOperationComponent: Entity, IAwake, IDestroy
|
||
|
{
|
||
|
public CameraComponent CameraComp;
|
||
|
public MapComponent MapComp;
|
||
|
public Transform CurEditUnitRoot;
|
||
|
public SpriteRenderer CurEditUnitSR;
|
||
|
public Vector2Int CurEditUnitSize;
|
||
|
public Vector2 UnitMinPos;
|
||
|
public Vector2 UnitMaxPos;
|
||
|
public Vector2 UnitMidPos;
|
||
|
public bool IsTouchDown = false;
|
||
|
public Vector2 InputPos = new Vector2();
|
||
|
public Vector2 MovePos = new Vector2();
|
||
|
public Vector3 DeltaPos = new Vector3();
|
||
|
public float CameraMoveSpeed = 1;
|
||
|
public Action UnitPosUpdate;
|
||
|
}
|
||
|
}
|