private IEnumerator BossEntrance() { _state = BossGameState.InBossRoom; ThePlayer.EnableHover(); FindObjectOfType <SlidingDoors>().Close(); // TODO boss entrance sequence yield return(new WaitForSeconds(2f)); ThePlayer.DisableHover(); BossEvents.BossFightStart(); }
private IEnumerator LoadSequence() { yield return(new WaitForSeconds(1f)); StartGame(); yield return(ThePlayer.StartCoroutine("CaveEntranceAnimation")); // TODO put this into a function that says "boss level begin" or something GameState = GameStates.Normal; _state = BossGameState.MovingTowardsBoss; ThePlayer.SetPlayerSpeed(Toolbox.Instance.LevelSpeed); PlayerController.EnterGamePlay(); }