//It's a call back called when a new year happens to be public void happyNewYear() { //Debug.Log("Happy new year!"); /* * if(InvestigationManager.GetInstance().isInvestigated(INVESTIGATIONS_ID.COOP)) { * CoopManager.GetInstance().happyNewYear(); * } */ WorldTerrain.GetInstance().resetEndOfTheYear(); BuildingsManager.GetInstance().reset(); PenalizationManager.GetInstance().reset(); if (b_firstAutoSave) { GameObject.Find("Logic").GetComponent <LogicManager> ().initAutoSave(); b_firstAutoSave = false; PlayerPrefs.SetInt("FirstAutoSaveDone", 1); } GameObject yearlySumPanel = Resources.Load("Prefabs/YearlySumPanelLostFocusLayer") as GameObject; UnityEngine.Object.Instantiate(yearlySumPanel); FaunaFelizManager.GetInstance().newYearUpdate(); }
public static FaunaFelizManager GetInstance() { if (instance == null) { instance = new FaunaFelizManager(); } return(instance); }