public void DisableTutorial() { pinchController.UnsubscribeFromPinch(gestureSubscriptionID); tutorialZoomIn.SetActive(false); tutorialZoomOut.SetActive(false); currentStage = currentStage = Stages.WaitingForStart; }
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; } }