public static void Log(string msg, DebugLevel debugLevel = DebugLevel.NORMAL) { if (instance) { instance.AddDebugText(msg, debugLevel); } else { string timestamp = DateTime.Now.ToString("hh:mm:ss"); preInstanceMsgs += "(" + timestamp + ") " + msg + "\n"; } }