reconfigured collision
also made some adjustments to player behavior and controller
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user