DeveloperConsole.DeveloperConsole.RegisterConsoleScript C# (CSharp) Method

RegisterConsoleScript() static private method

Register a script with the console
static private RegisterConsoleScript ( Script s, OnConsoleAttached c ) : void
s Script The script to register
c OnConsoleAttached The console attached callback delegate
return void
        internal static void RegisterConsoleScript(Script s, OnConsoleAttached c)
        {
            RegisteredScripts.Add(new KeyValuePair<Script, OnConsoleAttached>(s, c));
            if (Instance != null) c(Instance);
        }