Beispiel #1
0
        private void OnDestroy()
        {
            if (UnlessDestroy)
            {
                return;
            }

            if (CurrentState == StateType.Preview)
            {
                return;
            }

            EventHandlers.DestroyedPart(this);

            BuildManager.Instance.RemovePart(this);

            ChangeAreaState(OccupancyType.Free);
        }