Esempio n. 1
0
 public override void OnReleased()
 {
     base.OnReleased();
     if (UI != null)
     {
         UnityEngine.Object.Destroy(UI.gameObject);
         UI = null;
     }
     if (UIShortcutHandler != null)
     {
         UnityEngine.Object.Destroy(UI.gameObject);
         UIShortcutHandler = null;
     }
     if (StationContainer != null)
     {
         UnityEngine.Object.Destroy(StationContainer.gameObject);
         StationContainer = null;
     }
     if (ContentContainer != null)
     {
         UnityEngine.Object.Destroy(ContentContainer.gameObject);
         ContentContainer = null;
     }
     if (MethodDetours != null)
     {
         UnityEngine.Object.Destroy(MethodDetours.gameObject);
         MethodDetours = null;
     }
     if (UserRadioContainer != null)
     {
         UnityEngine.Object.Destroy(UserRadioContainer.gameObject);
         UserRadioContainer = null;
     }
     if (DisabledContentContainer != null)
     {
         UnityEngine.Object.Destroy(DisabledContentContainer.gameObject);
         UserRadioContainer = null;
     }
 }