示例#1
0
 void LoadFromSave()
 {
     list           = WardrobeIDDictionary.haircutDictionary;
     listType       = WardrobeItemTypeEnum.Haircut;
     haircut.sprite = WardrobeIDDictionary.GetSpriteByName(WardrobeDataManager.curHaircutID, WardrobeItemTypeEnum.Haircut);
     outfit.sprite  = WardrobeIDDictionary.GetSpriteByName(WardrobeDataManager.curOutfitID, WardrobeItemTypeEnum.Outfit);
 }
示例#2
0
 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);
     }
 }