void LoadFromSave() { list = WardrobeIDDictionary.haircutDictionary; listType = WardrobeItemTypeEnum.Haircut; haircut.sprite = WardrobeIDDictionary.GetSpriteByName(WardrobeDataManager.curHaircutID, WardrobeItemTypeEnum.Haircut); outfit.sprite = WardrobeIDDictionary.GetSpriteByName(WardrobeDataManager.curOutfitID, WardrobeItemTypeEnum.Outfit); }
private void OnSceneLoaded(Scene scene, LoadSceneMode loadSceneMode) { if (scene.buildIndex == 2) { haircut.sprite = WardrobeIDDictionary.GetSpriteByName(WardrobeDataManager.curHaircutID, WardrobeItemTypeEnum.Haircut); outfit.sprite = WardrobeIDDictionary.GetSpriteByName(WardrobeDataManager.curOutfitID, WardrobeItemTypeEnum.Outfit); } }