Exemple #1
0
 public void ApplyDamage(CharacterStat from)
 {
     slimeHp -= from.attackRate;
     if (slimeHp <= 0)
     {
         manager.SetDead();
         if (lastHitBy == null)
         {
             lastHitBy = from;
         }
         from.NotifyDead();
     }
 }
    public void ApplyDamage(CharacterStat from)
    {
        hp -= from.attackRate;
        if (hp <= 0)
        {
            manager.SetDead();
            if (lastHitBy == null)
            {
                lastHitBy = from;
                DropExp(lastHitBy);
            }

            from.NotifyDead();
        }
    }