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