void OnDestroy() { //EasyTouchSimpleEvent.SwipeAction -= OnSwipe; //EasyTouchSimpleEvent.Swipe2FingerAction -= OnSwipe2Finger; //EasyTouchSimpleEvent.SwipeEnd2FingerAction -= OnSwipeEnd2Finger; //InputManager.MouseScrollWheelAction -= OnMouseScrollWheel; Instance = null; delTouchCharacter -= OnTouchCharacter; delTouchDownInView -= OnTouchDownInView; if (_rotationTarget != null) { Destroy(_rotationTarget.gameObject); } }