Start on attempt to consolidate multiple scenes into one
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user