added character spawner script, spawn and destroy characters

This commit is contained in:
2023-08-01 15:48:00 +00:00
parent ef90dd7872
commit ef2b90b8b7
9 changed files with 306 additions and 660 deletions
+1 -4
View File
@@ -118,17 +118,14 @@ public class Player : Character
_animator.SetBool("Climb", isClimbing);
}
protected override void OnDeath()
protected void OnDeath()
{
Lives--;
Spawn();
if (Lives==0)
{
print("game over");
}
}
}