Пример #1
0
 /// <summary>
 /// Unregister all actions from specific target
 /// </summary>
 public static void UnregisterAllActions(object target)
 {
     #if LUNAR_CONSOLE_PLATFORM_SUPPORTED
         #if LUNAR_CONSOLE_FULL
             #if LUNAR_CONSOLE_ENABLED
     if (s_instance != null)
     {
         s_instance.UnregisterAllConsoleActions(target);
     }
             #endif // LUNAR_CONSOLE_ENABLED
         #endif     // LUNAR_CONSOLE_FULL
     #endif         // LUNAR_CONSOLE_PLATFORM_SUPPORTED
 }
Пример #2
0
 /// <summary>
 /// Unregister all actions from specific target
 /// </summary>
 public static void UnregisterAllActions(object target)
 {
     #if LUNAR_CONSOLE_PLATFORM_SUPPORTED
     #if LUNAR_CONSOLE_ENABLED
     if (LunarConsoleSettings.actionsEnabled)
     {
         if (s_instance != null)
         {
             s_instance.UnregisterAllConsoleActions(target);
         }
         else
         {
             Log.w("Can't unregister actions: instance is not initialized. Make sure you've installed it correctly");
         }
     }
     #endif // LUNAR_CONSOLE_ENABLED
     #endif // LUNAR_CONSOLE_PLATFORM_SUPPORTED
 }