Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        /// <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();
            }
        }