mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 08:25:20 +01:00
63 lines
1.0 KiB
C#
63 lines
1.0 KiB
C#
using UnityEngine;
|
|
|
|
public class TwoFingerGesture
|
|
{
|
|
public EasyTouch.GestureType currentGesture = EasyTouch.GestureType.None;
|
|
|
|
public EasyTouch.GestureType oldGesture = EasyTouch.GestureType.None;
|
|
|
|
public int finger0;
|
|
|
|
public int finger1;
|
|
|
|
public float startTimeAction;
|
|
|
|
public float timeSinceStartAction;
|
|
|
|
public Vector2 startPosition;
|
|
|
|
public Vector2 position;
|
|
|
|
public Vector2 deltaPosition;
|
|
|
|
public Vector2 oldStartPosition;
|
|
|
|
public float fingerDistance;
|
|
|
|
public float oldFingerDistance;
|
|
|
|
public GameObject pickedObject;
|
|
|
|
public GameObject oldPickedObject;
|
|
|
|
public Camera pickedCamera;
|
|
|
|
public bool isGuiCamera;
|
|
|
|
public bool isOverGui;
|
|
|
|
public GameObject pickedUIElement;
|
|
|
|
public bool dragStart;
|
|
|
|
public bool swipeStart;
|
|
|
|
public bool inSingleDoubleTaps;
|
|
|
|
public float tapCurentTime;
|
|
|
|
public void ClearPickedObjectData()
|
|
{
|
|
pickedObject = null;
|
|
oldPickedObject = null;
|
|
pickedCamera = null;
|
|
isGuiCamera = false;
|
|
}
|
|
|
|
public void ClearPickedUIData()
|
|
{
|
|
isOverGui = false;
|
|
pickedUIElement = null;
|
|
}
|
|
}
|