Destroy() публичный Метод

public Destroy ( ) : void
Результат void
Пример #1
0
        private void OnDestroy()
        {
            GameEvents.onVesselChange.Remove(new EventData <Vessel> .OnEvent(OnVesselChange));

            if (alternateDurationText != null)
            {
                alternateDurationText.Destroy();
                alternateDurationText = null;
            }

            if (alternateTimeUntilText != null)
            {
                alternateTimeUntilText.Destroy();
                alternateTimeUntilText = null;
            }

            if (countdownText != null)
            {
                countdownText.Destroy();
                countdownText = null;
            }
        }