Пример #1
0
 /// <summary>
 /// Clears Lunar console. Does nothing if platform is not supported or if plugin is not initizlied.
 /// </summary>
 public static void Clear()
 {
     #if LUNAR_CONSOLE_ENABLED
     if (instance != null)
     {
         instance.ClearConsole();
     }
     else
     {
         Debug.LogError("Can't clear " + Constants.PluginName + ": instance is not initialized. Make sure you've installed it correctly");
     }
     #endif
 }
Пример #2
0
 /// <summary>
 /// Clears Lunar console. Does nothing if platform is not supported or if plugin is not initizlied.
 /// </summary>
 public static void Clear()
 {
     #if LUNAR_CONSOLE_PLATFORM_SUPPORTED
     #if LUNAR_CONSOLE_ENABLED
     if (s_instance != null)
     {
         s_instance.ClearConsole();
     }
     else
     {
         Log.w("Can't clear console: instance is not initialized. Make sure you've installed it correctly");
     }
     #else
     Log.w("Can't clear console: plugin is disabled");
     #endif
     #else
     Log.w("Can't clear console: current platform is not supported");
     #endif
 }
Пример #3
0
        /// <summary>
        /// Clears Lunar console. Does nothing if platform is not supported or if plugin is not initizlied.
        /// </summary>
        public static void Clear()
        {
#if LUNAR_CONSOLE_PLATFORM_SUPPORTED
        #if LUNAR_CONSOLE_ENABLED
            if (s_instance != null)
            {
                s_instance.ClearConsole();
            }
            else
            {
                Debug.LogError("Can't clear " + Constants.PluginName + ": instance is not initialized. Make sure you've installed it correctly");
            }
        #else
            Debug.LogWarning("Can't clear " + Constants.PluginName + ": plugin is disabled");
        #endif
#else
            Debug.LogWarning("Can't clear " + Constants.PluginName + ": current platform is not supported");
#endif
        }