Example #1
0
    public virtual void heal(int num, unitControler creater)
    {
        HealMsg msg = new HealMsg(num, creater);

        if (_befHealing != null)
        {
            _befHealing(msg);
        }
        data.Now_Life += num;
        createHealNum(msg);
        if (_aftHealing != null)
        {
            _aftHealing(msg);
        }
    }
Example #2
0
 private void befHeal(HealMsg msg)
 {
     msg.num = (int)(msg.num * 0.5f);
 }
Example #3
0
 void halfHealMsg(HealMsg msg)
 {
     msg.num = (int)(msg.num * 0.5f);
 }
Example #4
0
 public void createHealNum(HealMsg msg)
 {
     NumberCreater.main.CreateFloatingNumber(msg.num, transform.position, 2);
 }