reconfigured collision

also made some adjustments to player behavior and controller
This commit is contained in:
slevy14
2023-04-17 15:22:24 -07:00
parent fb8732f820
commit 275763628b
19 changed files with 533 additions and 928 deletions

View File

@@ -14,11 +14,11 @@ public class StateController : MonoBehaviour {
}
public void RespawnPlayer() {
ToggleDeathCanvas();
SetDeathCanvasActive(false);
Instantiate(player, spawnPoint.transform.position, spawnPoint.transform.rotation);
}
public void ToggleDeathCanvas() {
deathCanvas.SetActive(!deathCanvas.activeSelf);
public void SetDeathCanvasActive(bool activeState) {
deathCanvas.SetActive(activeState);
}
}