well it works
This commit is contained in:
parent
6ff1531662
commit
af9b1a7448
11 changed files with 563 additions and 13 deletions
|
|
@ -17,7 +17,7 @@ public class Entity : MonoBehaviour
|
|||
public bool canMove = true;
|
||||
public bool invincible;
|
||||
|
||||
public void TakeDamage(float damage)
|
||||
public virtual void TakeDamage(float damage)
|
||||
{
|
||||
health -= damage;
|
||||
if (health <= 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue