Пример #1
0
    public static void Log(string message, LogType type)
    {
        if (message != null)
        {
            CSharpConsole.Print(message + "\n");
            Debug.Log(message);
        }
        else
        {
#if DEBUG
            CSharpConsole.Print("[Debug] A null message log was attempted!\n", LogType.Warning);
            Debug.LogWarning("CSharpConsole: A null message log was attempted!");
#endif
        }
    }