public static void Log(PSDebugCategory category, PSDebugColor color, string message, params object[] args) { if (IsDebugBuild) { if (EnabledCategories[category]) { var msg = StringUtils.SafeFormat(message, args); UnityEngine.Debug.Log(string.Format("<color={0}>{1}</color>", color, msg)); } } }