public CSharpConsoleLoader() { // Manually load the Mono.CSharp library. Dependancy.Load("../lib/Mono.CSharp.dll.dat"); // Manually load the CSharpConsoleEvaluator library. Dependancy.Load("../lib/CSharpConsoleEvaluator.dll.dat"); // Instantiate the console. CSharpConsole.Initialize(); // All loaded, now show the console. CSharpConsole.ShowConsole(); }
public static void Log(string message, LogType type) { if (message != null) { CSharpConsole.Print(message + "\n"); Debug.Log(message); } else { #if DEBUG CSharpConsole.Print("[Debug] A null message log was attempted!\n", LogType.Warning); Debug.LogWarning("CSharpConsole: A null message log was attempted!"); #endif } }