Beispiel #1
0
        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));
        }
Beispiel #3
0
 public static void TransitionToScene(TransitionPoint transitionPoint)
 {
     Instance.StartCoroutine(Instance.Transition(transitionPoint.newSceneName, transitionPoint.transitionDestinationTag, transitionPoint.transitionType));
 }
Beispiel #4
0
 public void TransitionToScene(TransitionPoint transitionPoint)
 {
     SceneController.TransitionToScene(transitionPoint);
 }