It's working (i broke transition animations)
This commit is contained in:
@@ -14,10 +14,13 @@ namespace Scampz.GameJam
|
||||
if (!loaded)
|
||||
{
|
||||
loaded = true;
|
||||
|
||||
var player = GameObject.FindWithTag("Player");
|
||||
var cc = player.GetComponent<CharacterController>();
|
||||
cc.enabled = false;
|
||||
GameManager.Instance.LoadScene(sceneIndex, LoadSceneMode.Additive);
|
||||
GameObject.FindWithTag("Player").transform.position = spawnPoint.position;
|
||||
GameObject.FindWithTag("Player").transform.rotation = spawnPoint.rotation;
|
||||
player.transform.position = spawnPoint.position;
|
||||
player.transform.rotation = spawnPoint.rotation;
|
||||
cc.enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user