示例#1
0
 public override bool Try()
 {
     if (player.GetHealth().IsDead())
     {
         return(false);
     }
     return(true);
 }
示例#2
0
文件: Debug.cs 项目: navezof/Disarmed
 void Update()
 {
     if (Input.GetKeyDown("a"))
     {
         player.GetHealth().TakeDamage(1);
     }
     if (Input.GetKeyDown("q"))
     {
         enemy.GetHealth().KnockedDown();
     }
 }