/// <summary> /// Instantiates the on screen console if there isn't one already /// </summary> public static void InstantiateOnScreenConsole(int fontSize = 25) { if (!DebugLogsEnabled) { return; } if (_console == null) { // we instantiate the console GameObject loaded = UnityEngine.Object.Instantiate(Resources.Load(_debugConsolePrefabPath) as GameObject); loaded.name = "MMDebugOnScreenConsole"; _console = loaded.GetComponent <MMDebugOnScreenConsole>(); } }
/// <summary> /// Use this method to specify what console to use /// </summary> /// <param name="newConsole"></param> public static void SetOnScreenConsole(MMDebugOnScreenConsole newConsole) { _console = newConsole; }