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(""); }
public static string GetHpSpriteName(HpSpriteType type) { return(GameTableManager.Instance.GetGlobalConfig <string>("HpSpriteName", type.ToString())); }