Пример #1
0
        public void Unregister()
        {
            if (Region != null)
            {
                Region.Unregister();
                Region = null;
            }

            if (GuardRegion != null)
            {
                GuardRegion.Unregister();
                GuardRegion = null;
            }

            Manager?.Delete();

            if (Stone != null && !Stone.Deleted)
            {
                Stone.Delete();
            }

            Banner1?.Delete();

            Banner2?.Delete();
        }
Пример #2
0
        public void Unregister()
        {
            if (Region != null)
            {
                Region.Unregister();
                Region = null;
            }

            if (GuardRegion != null)
            {
                GuardRegion.Unregister();
                GuardRegion = null;
            }

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

            if (Stone != null && !Stone.Deleted)
            {
                Stone.Delete();
            }

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

            if (Banner2 != null)
            {
                Banner2.Delete();
            }
        }
Пример #3
0
        public void Unregister()
        {
            if (Region != null)
            {
                Region.Unregister();
                Region = null;
            }

            if (GuardRegion != null)
            {
                GuardRegion.Unregister();
                GuardRegion = null;
            }
        }