// Get a reference to all of the continent controllers. void Start() { // Find devil and god controllers. devil_Controller = this.gameObject.GetComponent <Devil_Controller>(); god_Controller = this.gameObject.GetComponent <God_Controller>(); _day = _startingDay; _month = _startingMonth; _year = _startingYear; // Don't bother with leap year. _daysInMonth = new short[12] { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; _timer = 0.0f; //_evilDeathCount = 0; // Gives appropriate string names to the region controller which are assigned in the Unity editor. for (int i = 0; i < region_Controller.Length; i++) { region_Controller[i].name = this.GetComponent <Minor_Events_Controller>().regionNames[i]; } _isTimePaused = false; hellDeathCount = 0; heavenDeathCount = 0; // Setup main HUD. SetupHudText(); }
void Start() { eventsDescr = "Default text"; eventsContentText.text = eventsDescr; devil_Controller = gameObject.GetComponent <Devil_Controller>(); god_Controller = gameObject.GetComponent <God_Controller>(); }