public Sprite GetSprite(Pratiti pratiti) { switch (pratiti.pratitiBrand.pratitiName) { case PratitiBrand.PratitiName.羽毛: return(feather); case PratitiBrand.PratitiName.山豬: return(pig); case PratitiBrand.PratitiName.山羊: return(goat); case PratitiBrand.PratitiName.幼仔: return(infant); case PratitiBrand.PratitiName.蝸牛: return(snail); case PratitiBrand.PratitiName.雲朵: return(fly); default: Debug.Log("sprite not found"); return(null); } }
private void PratitiIntialize() { PratitiController pC = new PratitiController(); Debug.Log(PratitiBrand.GetPratitiBrand(pratitiName)); if (isRandom) { pC.PratitiInitialize(baseStatistic, PratitiBrand.GetPratitiBrand(pratitiName), sexDetermination, characteristic, IV, level); } else { pC.RandomData(PratitiBrand.GetPratitiBrand(pratitiName), level); } thisPratiti = pC.toControl; }
public static Sprite PratitiSprite(Pratiti pratiti) { switch (pratiti.pratitiBrand.pratitiName) { case PratitiBrand.PratitiName.山羊: return(Resources.Load <Sprite>("PratitiAssets/山羊")); case PratitiBrand.PratitiName.山豬: return(Resources.Load <Sprite>("PratitiAssets/山豬")); case PratitiBrand.PratitiName.幼仔: return(Resources.Load <Sprite>("PratitiAssets/幼仔")); case PratitiBrand.PratitiName.羽毛: return(Resources.Load <Sprite>("PratitiAssets/羽毛")); case PratitiBrand.PratitiName.蝸牛: return(Resources.Load <Sprite>("PratitiAssets/蝸牛")); case PratitiBrand.PratitiName.雲朵: return(Resources.Load <Sprite>("PratitiAssets/雲朵")); default: Debug.Log("error"); return(null); } }
public void SelectPratiti(int i) { Debug.Log(i); pratiti = pratitiData[i]; }
public void RefreshInfoPanel(Pratiti sD) { }
public void SetPlayerData() { PlayerPratiti = m_PratitiData.pratitiData[0]; }
// 設置戰鬥時帕拉提提資料 public void SetBattleData(Pratiti pratiti, Item getItem) { m_battleUseData.EnemyPratiti = pratiti; m_battleUseData.GetItem = getItem; m_battleUseData.SetPlayerData(); }
// 新增帕拉緹緹到包包 public void AddPratiti(Pratiti pratiti) { m_PratitiData.pratitiData.Add(pratiti); PratitiData.SavePratitiData(m_PratitiData.pratitiData); }