示例#1
0
    public void TakeAttack()
    {
        this.Health -= 1;

        if (this.Health == 0)
        {
            SoldierDead?.Invoke(this);
        }
    }
示例#2
0
 protected void OnDeath(SoldierArgs args)
 {
     SoldierDead?.Invoke(this, args);
 }