public override bool Try() { if (player.GetHealth().IsDead()) { return(false); } return(true); }
void Update() { if (Input.GetKeyDown("a")) { player.GetHealth().TakeDamage(1); } if (Input.GetKeyDown("q")) { enemy.GetHealth().KnockedDown(); } }