It's working (i broke transition animations)

This commit is contained in:
2022-08-14 03:07:04 -07:00
parent c2a3e96f16
commit de39856325
20 changed files with 1429 additions and 2026 deletions

View File

@@ -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;
}
}
}