Esempio n. 1
0
 public void ScreenPrint(LogLevel level, bool verbose, string message)
 {
     if (this.CanPrint(LogTarget.SCREEN, level, verbose) && (SceneDebugger.Get() != null))
     {
         string str = string.Format("[{0}] {1}", this.m_name, message);
         SceneDebugger.Get().AddMessage(str);
     }
 }
Esempio n. 2
0
        void OnGUI()
        {
            GUI.Label(new Rect(5, 5, 100, 30), "HearthGem");
            if (GUI.Button(new Rect(Screen.width - 110, 10, 100, 30), "Unload"))
            {
                HearthGemLoader.UnLoad();
            }

            Reflection.InvokeMethod(SceneDebugger.Get(), "LayoutLeftScreenControls", null);
        }
Esempio n. 3
0
    public void ScreenPrint(string name, string message, LogLevel logLevel)
    {
        LogInfo logInfo;

        if (!this.m_logInfos.TryGetValue(name, out logInfo))
        {
            return;
        }
        if (!logInfo.IsScreenPrintingEnabled())
        {
            return;
        }
        string message2 = string.Format("[{0}] {1}", name, message);

        this.Print(name, message, logLevel);
        SceneDebugger.Get().AddMessage(message2);
    }