public void Load_BattleCard() { Sprite[] sprites = Resources.LoadAll <Sprite>("Texture/battleCard"); for (int i = 0; i < sprites.Length; i++) { //20170813 chamto fixme - value 값이 없을 때의 예외 처리가 없음 //ref : https://stackoverflow.com/questions/2444033/get-dictionary-key-by-value eSPRITE_NAME key = _sprNameDict.FirstOrDefault(x => x.Value == sprites [i].name).Key; _loadedDict.Add(key, sprites [i]); } }
public Sprite GetSprite(eSPRITE_NAME eName) { //20170813 chamto fixme - enum 값이 없을 때의 예외 처리가 없음 return(_loadedDict [eName]); }