public static void AssertFile(bool assertion, object message) { if (Conf.DebugMode == Conf.DebugState.None) { return; } if (assertion == false) { if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.OSXEditor) { InternalNGDebug.VerboseError((message ?? "NULL").ToString()); InternalNGDebug.LogFile((message ?? "NULL").ToString()); } else { Debug.LogError("[" + Constants.PackageTitle + "] " + (message ?? "NULL").ToString()); } } }