Playable demo build (no airship)
This commit is contained in:
@@ -23,15 +23,15 @@ namespace Scampz.GameJam.Assets.Scripts.SceneManagement
|
||||
var levelChanger = FindObjectOfType<LevelChanger>();
|
||||
levelChanger.FadeAnimation();
|
||||
yield return null;
|
||||
yield return new WaitForSeconds(3.0f);
|
||||
var player = GameObject.FindGameObjectWithTag("Player");
|
||||
player.SetActive(false);
|
||||
var cc = player.GetComponent<CharacterController>();
|
||||
cc.enabled = false;
|
||||
player.SetActive(false);
|
||||
yield return new WaitForSeconds(1.0f);
|
||||
yield return null;
|
||||
player.transform.position = _spawnPoint.position;
|
||||
player.transform.rotation = _spawnPoint.rotation;
|
||||
cc.enabled = true;
|
||||
yield return null;
|
||||
var allCamerasInCurrentScene = FindObjectsOfType<Camera>();
|
||||
foreach (var sceneCamera in allCamerasInCurrentScene)
|
||||
sceneCamera.enabled = false;
|
||||
|
||||
Reference in New Issue
Block a user