Activate() public method

public Activate ( ) : void
return void
Beispiel #1
0
 private void HandleEscape()
 {
     if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.BackQuote))
     {
         escapeAction.Activate();
     }
 }
Beispiel #2
0
    /* 激活或隐藏开发者控制台 */
    private void ToggleConsole()
    {
        consoleEnabled = !consoleEnabled;

        if (consoleEnabled)
        {
            consoleOpenAction.Activate();
        }
        else
        {
            consoleCloseAction.Activate();
        }
    }