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); }
protected void TransitionInternal() { if (requiresInventoryCheck) { if (!inventoryCheck.CheckInventory(inventoryController)) { return; } } if (transitionType == TransitionType.SameScene) { GameObjectTeleporter.Teleport(transitioningGameObject, destinationTransform.transform); } else { SceneController.TransitionToScene(this); } }
public void TransitionToScene(TransitionPoint transitionPoint) { SceneController.TransitionToScene(transitionPoint); }