コード例 #1
0
ファイル: Rotatable.cs プロジェクト: LittleMoon215/3DPuzzle
 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;
 }