コード例 #1
0
    public void AssertIf(bool condition)
    {
        if (!condition || LogMode != DebugLogMode.None)
        {
            return;
        }

        LogMode = DebugLogMode.Assertion;
    }
コード例 #2
0
    public void ErrorIf(bool condition)
    {
        if (!condition || LogMode != DebugLogMode.None)
        {
            return;
        }

        LogMode = DebugLogMode.Error;
    }
コード例 #3
0
    public void WarnIf(bool condition)
    {
        if (!condition || LogMode != DebugLogMode.None)
        {
            return;
        }

        LogMode = DebugLogMode.Warning;
    }
コード例 #4
0
 public DebugStringBuilder(DebugLogMode logMode = DebugLogMode.None)
 {
     m_Content = new StringBuilder();
     LogMode   = logMode;
 }
コード例 #5
0
 public DebugStringBuilder(string message, DebugLogMode logMode = DebugLogMode.None)
 {
     m_Content = new StringBuilder(message);
     LogMode   = logMode;
 }