public override void Reset() { proxy = null; overEvent = null; notOverEvent = null; isOverRectTransform = null; }
public override void OnEnter() { proxy = Owner.GetComponent <EasyTouchObjectProxy>(); if (proxy) { RectTransform recTransform = (rectTransformOwner.Value as GameObject).transform as RectTransform; bool tmp = proxy.currentGesture.IsOverRectTransform(recTransform, null); isOverRectTransform.Value = tmp; if (tmp) { Fsm.Event(overEvent); Finish(); } else { Fsm.Event(notOverEvent); Finish(); } } else { Debug.LogError("EasyTouchObjectProxy component is missing", Owner.gameObject); Finish(); } }
public override void Reset() { proxy = null; isOverUIElement = null; overEvent = null; notOverEvent = null; }
public override void OnEnter() { proxy = Owner.GetComponent <EasyTouchObjectProxy>(); if (proxy) { fingerIndex.Value = proxy.currentGesture.fingerIndex; touchCount.Value = proxy.currentGesture.touchCount; startPosition.Value = proxy.currentGesture.startPosition; position.Value = proxy.currentGesture.position; deltaPosition.Value = proxy.currentGesture.deltaPosition; deltaPositionX.Value = proxy.currentGesture.deltaPosition.x; deltaPositionY.Value = proxy.currentGesture.deltaPosition.y; actionTime.Value = proxy.currentGesture.actionTime; deltaTime.Value = proxy.currentGesture.deltaTime; pickedGameObject.Value = proxy.currentGesture.pickedObject; pickedUIElement.Value = proxy.currentGesture.pickedUIElement; swipe.Value = proxy.currentGesture.swipe; swipeVector.Value = proxy.currentGesture.swipeVector; swipeLength.Value = proxy.currentGesture.swipeLength; deltaPinch.Value = proxy.currentGesture.deltaPinch; twistAngle.Value = proxy.currentGesture.twistAngle; twoFingerDistance.Value = proxy.currentGesture.twoFingerDistance; isOverGUI.Value = proxy.currentGesture.isOverGui; } else { Debug.LogError("EasyTouchObjectProxy component is missing", Owner.gameObject); } Finish(); }
public override void OnEnter() { proxy = Owner.GetComponent <EasyTouchObjectProxy>(); if (proxy) { switch (depthType) { case DepthType.Value: worldPosition.Value = proxy.currentGesture.GetTouchToWorldPoint(z.Value); break; case DepthType.GameObjectReference: worldPosition.Value = proxy.currentGesture.GetTouchToWorldPoint(gameObjectReference.Value.transform.position); break; case DepthType.Position: worldPosition.Value = proxy.currentGesture.GetTouchToWorldPoint(position.Value); break; } } else { Debug.LogError("EasyTouchObjectProxy component is missing", Owner.gameObject); } Finish(); }
public override void OnEnter() { proxy = Owner.GetComponent <EasyTouchObjectProxy>(); if (proxy) { currentUIElement.Value = proxy.currentGesture.GetCurrentFirstPickedUIElement(isTwoFinger); } else { Debug.LogError("EasyTouchObjectProxy component is missing", Owner.gameObject); } Finish(); }
public override void OnEnter() { proxy = Owner.GetComponent <EasyTouchObjectProxy>(); if (proxy) { swipeAngle.Value = proxy.currentGesture.GetSwipeOrDragAngle(); } else { Debug.LogError("EasyTouchObjectProxy component is missing", Owner.gameObject); } Finish(); }
public override void OnEnter() { proxy = Owner.GetComponent <EasyTouchObjectProxy>(); if (proxy) { normalizedPosition.Value = proxy.currentGesture.NormalizedPosition(); } else { Debug.LogError("EasyTouchObjectProxy component is missing", Owner.gameObject); } Finish(); }
public override void OnEnter() { proxy = Owner.GetComponent <EasyTouchObjectProxy>(); if (proxy) { currentObject.Value = EasyTouch.GetGameObjectAt(proxy.currentGesture.position, isTwoFinger); if (currentObject.Value) { name = currentObject.Value.name; } } else { Debug.LogError("EasyTouchObjectProxy component is missing", Owner.gameObject); } Finish(); }
public override void OnEnter() { proxy = Owner.GetComponent <EasyTouchObjectProxy>(); if (proxy) { isOverUIElement.Value = proxy.currentGesture.IsOverUIElement(); if (isOverUIElement.Value) { Fsm.Event(overEvent); Finish(); } else { Fsm.Event(notOverEvent); Finish(); } } else { Debug.LogError("EasyTouchObjectProxy component is missing", Owner.gameObject); Finish(); } }
public override void OnEnter() { proxy = Owner.GetComponent <EasyTouchObjectProxy>(); }
public override void Reset() { proxy = null; currentUIElement = null; }
public override void Reset() { proxy = null; currentObject = null; }
public override void Reset() { proxy = null; gameObjectReference = null; z = null; }