public void load(LogicManagerData logicManagerData) { _tileSelectedPosition = new uint[2] { 26, 15 }; _hasTileSelected = false; ActionManager.GetInstance(); CoopManager.GetInstance(); PenalizationManager.GetInstance(); //WorldTerrain.GetInstance().initWorld(); //BuildingsManager.GetInstance().init(); UserDataManager.GetInstance().init(); RiceObjectsManager.GetInstance(); _cloudSpawner = new CloudSpawner(WorldTerrain.CLOUDS_Z_LAYER); gameObject.GetComponent <TimeManager>().addListenerToYearChange(this.happyNewYear); gameObject.GetComponent <TimeManager>().addListenerToMonthChange(happyNewMonth); gameObject.GetComponent <TimeManager>().addListerToDayChange(this.newDayCallback); }
public GameSaveData() { ActionManagerData = new ActionManagerData(); BuildingManagerData = new BuildingManagerData(); TimeManagerData = new TimeManagerData(); CoopManagerData = new CoopManagerData(); UserDataManagerData = new UserDataManagerData(); InvestigationManagerData = new InvestigationManagerData(); LogicManagerData = new LogicManagerData(); CanalManagerData = new CanalManagerData(); PenalizationManagerData = new PenalizationManagerData(); PhaseManagerData = new PhaseManagerData(); PlagueManagerData = new PlagueManagerData(); RankingManagerData = new RankingManagerData(); RiceObjectManagerData = new RiceObjectManagerData(); WeedFactoryData = new WeedFactoryData(); WorkerManagerData = new WorkerManagerData(); WorldTerrainData = new WorldTerrainData(); tutorialManagerData = new TutorialManagerData(); }
public void save(LogicManagerData logicManagerData) { logicManagerData.MonthsInRed = m_monthsInRed; logicManagerData.MonthsSinceIShowedPopup = m_monthsSinceIShowedInRedPopup; logicManagerData.WarningPopupShown = b_warningInRedPopupShown; }