示例#1
0
 public static string ExecuteCommand(string command, params string[] args)
 {
     return(ConsoleCommandsDatabase.ExecuteCommand(command, args));
 }
示例#2
0
 void Start()
 {
     ConsoleCommandsDatabase.RegisterCommand(QuitCommand.name, QuitCommand.description, QuitCommand.usage, QuitCommand.Execute);
     ConsoleCommandsDatabase.RegisterCommand(HelpCommand.name, HelpCommand.description, HelpCommand.usage, HelpCommand.Execute);
     ConsoleCommandsDatabase.RegisterCommand(LoadCommand.name, LoadCommand.description, LoadCommand.usage, LoadCommand.Execute);
 }