コード例 #1
0
ファイル: PetGameData.cs プロジェクト: aliken9/MyZooPets
 private void Init()
 {
     Wellapad = new MutableDataWellapad();
     PetInfo  = new MutableDataPetInfo();
     allMutableData.Add(PetInfo);
     Cutscenes         = new MutableDataCutscene();
     Decorations       = new MutableDataDecorationSystem();
     Accessories       = new MutableDataAccessories();
     Stats             = new MutableDataStats();
     Level             = new MutableDataPetLevel();
     PlayPeriod        = new MutableDataPlayPeriod();
     Degradation       = new MutableDataDegradation();
     Inhaler           = new MutableDataInhaler();
     Tutorial          = new MutableDataTutorial();
     Inventory         = new MutableDataInventory();
     Badge             = new MutableDataBadge();
     GatingProgress    = new MutableDataGatingProgress();
     HighScore         = new MutableDataHighScore();
     FirstTimeEntrance = new MutableDataFirstTimeEntrance();
     SickNotification  = new MutableDataSickNotification();
     MiniPets          = new  MutableDataMiniPets();
     MiniPetLocations  = new MutableDataMiniPetLocations();
     MicroMix          = new MutableDataMicroMix();
     AdViews           = new MutableDataAdData();
 }
コード例 #2
0
 void Start()
 {
     try{
         if (Application.isPlaying)                  // Exception for execute in edit mode
         {
             if (isDebug)
             {
                 Debug.LogWarning("Debug for pet color is currently on! Make sure to uncheck!");
             }
             else
             {
                 if (SceneUtils.CurrentScene == SceneUtils.MENU)
                 {
                     MutableDataPetInfo petMenuInfo = MenuSceneManager.Instance.PetMenuInfo;
                     LoadAndSetColor(petMenuInfo.PetColor);
                 }
                 else
                 {
                     LoadAndSetColor(DataManager.Instance.GameData.PetInfo.PetColor);
                 }
             }
         }
     }
     catch (Exception e) {
         Debug.LogError("Exception caught in PetSpriteColorLoader with message: " + e.Message);
     }
 }