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)); }
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); }
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); }
public static void TransitionToScene(TransitionPoint transitionPoint) { Instance.StartCoroutine(Instance.Transition(transitionPoint.newSceneName, transitionPoint.resetInputValuesOnTransition, transitionPoint.transitionDestinationTag, transitionPoint.transitionType)); }
//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)); }
public void TransitionToScene(TransitionPoint transitionPoint) { SceneController.TransitionToScene(transitionPoint); }