Esempio n. 1
0
        public static void Teleport(TransitionPoint transitionPoint)
        {
            var destinationTransform = Instance.GetDestination(transitionPoint.transitionDestinationTag).transform;

            Instance.StartCoroutine(Instance.Transition(transitionPoint.transitioningGameObject, true,
                                                        transitionPoint.resetInputValuesOnTransition, destinationTransform.position, true));
        }
 public static void TransitionToScene(TransitionPoint transitionPoint)
 {
     if (transitionPoint.newSceneName != "Menu")
     {
         PlayerCharacter.PlayerInstance.damageable.SetHealth(PlayerCharacter.PlayerInstance.damageable.startingHealth);
     }
     Instance.StartCoroutine(Instance.Transition(transitionPoint.newSceneName, transitionPoint.resetInputValuesOnTransition, transitionPoint.transitionDestinationTag, transitionPoint.transitionType));
 }
Esempio n. 3
0
        protected void TransitionInternal()
        {
            var transitionPoint = new TransitionPoint();

            transitionPoint.newSceneName = nomeDaCena;
            transitionPoint.resetInputValuesOnTransition = resetInputValuesOnTransition;
            transitionPoint.transitionDestinationTag     = GetDestinationTag(letraDaTag);
            transitionPoint.transitionType = TransitionPoint.TransitionType.DifferentZone;
            SceneController.TransitionToScene(transitionPoint);
        }
Esempio n. 4
0
        public void TransitionToSceneCustom(string sceneName)
        {
            TransitionPoint trans = new TransitionPoint();

            trans.newSceneName                 = sceneName;
            trans.requiresInventoryCheck       = false;
            trans.resetInputValuesOnTransition = false;
            trans.transitionType               = TransitionPoint.TransitionType.DifferentZone;
            trans.transitionWhen               = TransitionPoint.TransitionWhen.ExternalCall;

            SceneController.TransitionToScene(trans);
        }
Esempio n. 5
0
 public static void TransitionToScene(TransitionPoint transitionPoint)
 {
     Instance.StartCoroutine(Instance.Transition(transitionPoint.newSceneName, transitionPoint.resetInputValuesOnTransition, transitionPoint.transitionDestinationTag, transitionPoint.transitionType));
 }
Esempio n. 6
0
 //Transicion de escena, llamado en TransitionPoint y recibe dicho script
 public static void TransitionToScene(TransitionPoint transitionPoint)
 {
     //Obtenga una instancia de este mismo script e inicie una corrutina miembro que se inicio con otra instancia.transition(Consulta el Script Transi.new(nombreEscena.. toda la info necesaria.
     Instance.StartCoroutine(Instance.Transition(transitionPoint.newSceneName, transitionPoint.resetInputValuesOnTransition, transitionPoint.transitionDestinationTag, transitionPoint.transitionType));
 }
Esempio n. 7
0
 public void TransitionToScene(TransitionPoint transitionPoint)
 {
     SceneController.TransitionToScene(transitionPoint);
 }