public void StartGame() { TransitionPoint transitionPoint = new TransitionPoint { newSceneName = "S1Kit", transitionType = TransitionPoint.TransitionType.DifferentZone, transitionDestinationTag = SceneTransitionDestination.DestinationTag.A, requiresInventoryCheck = false }; SceneController.GameFinished = false; SceneController.TransitionToScene(transitionPoint); }
public static void Teleport(TransitionPoint transitionPoint) { Transform destinationTransform = Instance.GetDestination(transitionPoint.transitionDestinationTag).transform; Instance.StartCoroutine(Instance.Transition(transitionPoint.transitioningGameObject, true, destinationTransform.position, true)); }
public static void TransitionToScene(TransitionPoint transitionPoint) { Instance.StartCoroutine(Instance.Transition(transitionPoint.newSceneName, transitionPoint.transitionDestinationTag, transitionPoint.transitionType)); }
public void TransitionToScene(TransitionPoint transitionPoint) { SceneController.TransitionToScene(transitionPoint); }