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