예제 #1
0
    public void SetHurt(string name, int hurt)
    {
        ItemEntityHp itemHp = null;

        if (itemHpDicts.TryGetValue(name, out itemHp))
        {
            itemHp.SetHurt(hurt);
        }
    }
예제 #2
0
    public void SetHurt(string key, int hurt)
    {
        ItemEntityHp item = null;

        if (hpItemDic.TryGetValue(key, out item) == true)
        {
            item.SetHurt(hurt);
        }
    }