Ejemplo n.º 1
0
 /// <summary>
 /// Unregister action by delegate
 /// </summary>
 public static void UnregisterAction(Action action)
 {
     #if LUNAR_CONSOLE_PLATFORM_SUPPORTED
         #if LUNAR_CONSOLE_FULL
             #if LUNAR_CONSOLE_ENABLED
     if (s_instance != null)
     {
         s_instance.UnregisterConsoleAction(action);
     }
             #endif // LUNAR_CONSOLE_ENABLED
         #endif     // LUNAR_CONSOLE_FULL
     #endif         // LUNAR_CONSOLE_PLATFORM_SUPPORTED
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Unregister action by delegate
 /// </summary>
 public static void UnregisterAction(Action action)
 {
     #if LUNAR_CONSOLE_PLATFORM_SUPPORTED
     #if LUNAR_CONSOLE_ENABLED
     if (s_instance != null)
     {
         s_instance.UnregisterConsoleAction(action);
     }
     else
     {
         Log.w("Can't unregister action: instance is not initialized. Make sure you've installed it correctly");
     }
     #else
     Log.w("Can't unregister action: plugin is disabled");
     #endif
     #endif
 }