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.
19 lines
543 B
19 lines
543 B
3 years ago
|
using UnityEngine;
|
||
|
|
||
|
namespace ET
|
||
|
{
|
||
|
[ComponentOf(typeof(Scene))]
|
||
|
public class OperationComponent : Entity, IAwake, IUpdate, IDestroy
|
||
|
{
|
||
|
public bool Enabled = true;
|
||
|
public CameraComponent CameraComp;
|
||
|
|
||
|
public bool isFirstTouchDown = false;
|
||
|
public Vector3 mouseDownPos = Vector2.zero;
|
||
|
public Vector3 cameraDownPos = Vector3.zero;
|
||
|
public Vector3 cameraTargetPos = Vector3.zero;
|
||
|
|
||
|
// 用于标识当前是否处于拖动屏幕操作
|
||
|
public bool IsDragging = false;
|
||
|
}
|
||
|
}
|