Exemple #1
0
 public void UpdateHeroValue(string player_id, float hp_value, float mp_value)
 {
     if (player_id != null && this.headItems.ContainsKey(player_id))
     {
         HeadItem headItem = this.headItems[player_id];
         headItem.UpdateValue(hp_value, mp_value);
     }
 }
    public void UpdateHeroValue(string player_id, TeamType tType, float hp_value, float mp_value)
    {
        HeadItem item = this.GetItem(player_id, tType);

        if (item != null)
        {
            item.UpdateValue(hp_value, mp_value);
        }
    }