Exemple #1
0
        void Unload()
        {
            Hud.Destroy();
            Zones.Destroy();
            Users.Destroy();
            Wars.Destroy();
            Pins.Destroy();
            Areas.Destroy();
            Factions.Destroy();

            if (UpkeepCollectionTimer != null && !UpkeepCollectionTimer.Destroyed)
            {
                UpkeepCollectionTimer.Destroy();
            }

            if (GameObject != null)
            {
                UnityEngine.Object.Destroy(GameObject);
            }

            Instance = null;
        }