Example #1
0
    public void LogError(string loggingString, bool optionalToggleOn)
    {
        if (optionalToggleOn)
        {
            if (isConsoleDebuggerActivated)
            {
                Debug.LogError(loggingString);
            }

            if (isScreenDebuggerActivated)
            {
                if (screenDebugger)
                {
                    screenDebugger.Log(loggingString);
                }
                else
                {
                    Debug.LogWarning(SCREEN_DEBUGGER_NOT_SET_MESSAGE);
                }
            }
        }
    }