private void loglevelMedium_CheckedChanged(object sender, EventArgs e) { if (loglevelMedium.Checked) { logLevel = logLevels.Medium; } }
private void loglevelMaximum_CheckedChanged(object sender, EventArgs e) { if (loglevelMaximum.Checked) { logLevel = logLevels.Verbose; } }
public static void log(string message, logLevels l, params object[] objs) { message = string.Format(message, objs); string log = string.Format("[SEP Science] {0}", message); switch (l) { case logLevels.log: Debug.Log(log); break; case logLevels.warning: Debug.LogWarning(log); break; case logLevels.error: Debug.LogError(log); break; } }