예제 #1
0
 public void DisableTutorial()
 {
     pinchController.UnsubscribeFromPinch(gestureSubscriptionID);
     tutorialZoomIn.SetActive(false);
     tutorialZoomOut.SetActive(false);
     currentStage = currentStage = Stages.WaitingForStart;
 }
예제 #2
0
 private void _UnsubscribeToGestures()
 {
     if (isSubscribedToGestures)
     {
         tapController.UnsubscribeFromTap(planetClickSubscription);
         swipeController.UnsubscribeFromSwipe(swipeDownSubscription);
         swipeController.UnsubscribeFromSwipe(swipeLeftSubscription);
         swipeController.UnsubscribeFromSwipe(swipeRightSubscription);
         swipeController.UnsubscribeFromSwipe(swipeUpSubscription);
         pinchController.UnsubscribeFromPinch(spreadSubscription);
         pinchController.UnsubscribeFromPinch(pinchSubscription);
         isSubscribedToGestures = false;
     }
 }