Start on attempt to consolidate multiple scenes into one

This commit is contained in:
2022-08-19 14:36:04 -07:00
parent 4e39c75095
commit 82fe821806
11 changed files with 7874 additions and 25 deletions

View File

@@ -26,12 +26,14 @@ public class PlayerSpawnController : MonoBehaviour
{
_player = GameObject.FindGameObjectWithTag("Player");
_player.transform.position = _spawnLocation.transform.position;
_player.transform.rotation = _spawnLocation.transform.rotation;
}
else
{
_player = Instantiate(_playerPrefab);
_player.transform.position = _spawnLocation.transform.position;
_player.transform.rotation = _spawnLocation.transform.rotation;
DontDestroyOnLoad(_player);
}
}