added character spawner script, spawn and destroy characters
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user