示例#1
0
 public void Forbid()
 {
     if (isPermited)
     {
         swipeController.UnsubscribeFromSwipe(swipeDownSubscription);
         swipeController.UnsubscribeFromSwipe(swipeLeftSubscription);
         swipeController.UnsubscribeFromSwipe(swipeRightSubscription);
         swipeController.UnsubscribeFromSwipe(swipeUpSubscription);
         twistController.UnsubscribeFromTwist(twistSubscription);
         isPermited = false;
     }
 }
示例#2
0
 public void DisableTutorial()
 {
     twistController.UnsubscribeFromTwist(twistSubscriptionID);
     rotationGesture.SetActive(false);
     currentStage = Stages.WaitingForStart;
 }