DeveloperConsole.DeveloperConsole.RegisterConsoleScript C# (CSharp) Méthode

RegisterConsoleScript() static private méthode

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
Résultat void
        internal static void RegisterConsoleScript(Script s, OnConsoleAttached c)
        {
            RegisteredScripts.Add(new KeyValuePair<Script, OnConsoleAttached>(s, c));
            if (Instance != null) c(Instance);
        }