void OnDestroy() { this.Log("OnDestroy"); button.Destroy(); GameEvents.onCrewOnEva.Remove(OnCrewOnEva); GameEvents.onCrewBoardVessel.Remove(OnCrewBoardVessel); GameEvents.onGameSceneLoadRequested.Remove(OnGameSceneLoadRequested); }
void OnDestroy() { this.Log("OnDestroy"); button.Destroy(); // Make sure we remove our locks if (InputLockManager.GetControlLock(lockName) == desiredLock) { InputLockManager.RemoveControlLock(lockName); } }
void OnDestroy() { this.Log("OnDestroy"); button.Destroy(); }