コード例 #1
0
    public static void Log(string message, string tags = "", string color_string = "#00d632")
    {
        //Init();
        if (!Enabled)
        {
            return;
        }

        if (RKLog.CompareTags(tags) == true && RKLog.CompareIgnoreTags(tags) == false || RKLog.AlwaysAllowedTypes.Contains(types.LOG))
        {
            if (message != _lastlog || IgnoreDoubles == false)
            {
                Debug.Log(
                    $"<color={color_string}>RK ({tags}): {message}</color>");
                if (IgnoreDoubles == true)
                {
                    _lastlog = message;
                }
            }
        }
    }