Exemplo n.º 1
0
    public static string GetHpSpriteName(HpSpriteType type)
    {
        int key = (int)type;

        if (HpSpriteName_Dic.ContainsKey(key))
        {
            return(HpSpriteName_Dic[key]);
        }
        else
        {
            string value = GameTableManager.Instance.GetGlobalConfig <string>("HpSpriteName", type.ToString());
            HpSpriteName_Dic.Add(key, value);
            return(value);
        }
        return("");
    }
Exemplo n.º 2
0
 public static string GetHpSpriteName(HpSpriteType type)
 {
     return(GameTableManager.Instance.GetGlobalConfig <string>("HpSpriteName", type.ToString()));
 }