/// <summary> /// Instantiates the on screen console if there isn't one already /// </summary> public static void InstantiateOnScreenConsole() { if (_Console == null) { // we instantiate the console GameObject newGameObject = new GameObject(); newGameObject.name = "MMConsole"; _Console = newGameObject.AddComponent <MMConsole>(); } }
/// <summary> /// Instantiates the on screen console if there isn't one already /// </summary> public static void InstantiateOnScreenConsole(int fontSize = 10) { if (_console == null) { // we instantiate the console GameObject newGameObject = new GameObject(); newGameObject.name = "MMConsole"; _console = newGameObject.AddComponent <MMConsole>(); _console.SetFontSize(fontSize); } }