コード例 #1
0
    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);
        }
    }