basically the whole game
This commit is contained in:
parent
949135cecb
commit
96dcfa9064
315 changed files with 34386 additions and 396 deletions
|
|
@ -10,12 +10,16 @@ public class Entity : MonoBehaviour
|
|||
|
||||
[Header("State")]
|
||||
public bool isStalled;
|
||||
public bool invulnerable;
|
||||
[Header("Abilities")]
|
||||
public List<Ability> abilities = new();
|
||||
|
||||
public virtual void TakeDamage(int damage)
|
||||
{
|
||||
health -= damage;
|
||||
if (!invulnerable)
|
||||
{
|
||||
health -= damage;
|
||||
}
|
||||
if (health <= 0)
|
||||
{
|
||||
OnDeath();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue