Esempio n. 1
0
        protected override void Remove()
        {
            Utility.WriteConsoleColor(ConsoleColor.Green, string.Format("{0} Disabled!", Name));

            EndTimer();
            Stage     = -1;
            NextStage = DateTime.MinValue;

            if (Elf != null)
            {
                Elf.Delete();
                Elf = null;
            }

            if (Winners != null)
            {
                Winners.Clear();
                Winners = null;
            }

            if (TownTree != null)
            {
                TownTree.Delete();
                TownTree = null;
            }

            if (RewardBag != null)
            {
                RewardBag.Delete();
                RewardBag = null;
            }

            ColUtility.Free(_CityOrder);
            _CityOrder = null;

            Running = false;
        }