예제 #1
0
파일: StartUI.cs 프로젝트: Narutofox/MyFFXV
        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);
        }
예제 #2
0
        protected void TransitionInternal()
        {
            if (requiresInventoryCheck)
            {
                if (!inventoryCheck.CheckInventory(inventoryController))
                {
                    return;
                }
            }

            if (transitionType == TransitionType.SameScene)
            {
                GameObjectTeleporter.Teleport(transitioningGameObject, destinationTransform.transform);
            }
            else
            {
                SceneController.TransitionToScene(this);
            }
        }
예제 #3
0
 public void TransitionToScene(TransitionPoint transitionPoint)
 {
     SceneController.TransitionToScene(transitionPoint);
 }