您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
26 行
1.0 KiB
26 行
1.0 KiB
using UnityConsole.Commands;
|
|
using UnityEngine;
|
|
|
|
namespace UnityConsole
|
|
{
|
|
public class DefaultCommands : MonoBehaviour
|
|
{
|
|
void Start()
|
|
{
|
|
ConsoleCommandsDatabase.RegisterCommand(QuitCommand.name, QuitCommand.description, QuitCommand.usage,
|
|
QuitCommand.Execute);
|
|
ConsoleCommandsDatabase.RegisterCommand(HelpCommand.name, HelpCommand.description, HelpCommand.usage,
|
|
HelpCommand.Execute);
|
|
|
|
ConsoleCommandsDatabase.RegisterCommand(LoadSceneCommand.name, LoadSceneCommand.description,
|
|
LoadSceneCommand.usage, LoadSceneCommand.Execute);
|
|
|
|
|
|
ConsoleCommandsDatabase.RegisterCommand(UnloadSceneCommand.name, UnloadSceneCommand.description,
|
|
UnloadSceneCommand.usage, UnloadSceneCommand.Execute);
|
|
|
|
ConsoleCommandsDatabase.RegisterCommand(SetActiveSceneCommand.name, SetActiveSceneCommand.description,
|
|
SetActiveSceneCommand.usage, SetActiveSceneCommand.Execute);
|
|
}
|
|
}
|
|
}
|