Пример #1
0
 /// <summary>Called when the ApplicationLauncher gets destroyed.</summary>
 void DestroyAppButton()
 {
     if (!Equals(appButton, null))
     {
         ApplicationLauncher.Instance.RemoveModApplication(appButton);
         appButton    = null;
         isGUIEnabled = false;
         KFPersistenceManager.SaveConfig();
     }
 }
Пример #2
0
 /// <summary>Called when the button is in a "false" state.  Saves configuration.</summary>
 void onFalse()
 {
     KFPersistenceManager.SaveConfig();
     appButton.SetTexture(appTextureGrey);
     isGUIEnabled = false;
 }