void Setup() { setupSpawnPoints(); // PresetUp if (GlobalEventManager.OnPreSetUp != null) { GlobalEventManager.OnPreSetUp(); } MngUnit = new UnitManager(); if (GlobalEventManager.OnPostSetUp != null) { GlobalEventManager.OnPostSetUp(); } TextBoxFactionCounter.SetText("Factions number: " + MngUnit.factions.Count.ToString()); }
/// <summary> /// Logiche di setup dall'applicazione. /// </summary> void Setup() { // Evento pre setup if (GlobalEventManager.OnPreSetup != null) { GlobalEventManager.OnPreSetup(); } // TODO: setup Debug.Log("Setup del GameManger"); setupSpawnPoints(); mngUnit = new UnitManager(); // Evento setup done if (GlobalEventManager.OnPostSetup != null) { GlobalEventManager.OnPostSetup(); } if (GlobalEventManager.OnGMSetupFinished != null) { GlobalEventManager.OnGMSetupFinished(); } }