示例#1
0
    // Update is called once per frame
    protected override void Update()
    {
        if (!IsLockAction())
        {
            IdleAction.Idle();
        }
        MoveInput();

        if (Input.GetKeyDown(KeyCode.Space))
        {
            BlockAction.Block();
        }

        if (Input.GetKeyDown(KeyCode.RightBracket))
        {
            TimeScaleForDebug += 0.1f;
        }
        else if (Input.GetKeyDown(KeyCode.LeftBracket))
        {
            TimeScaleForDebug -= 0.1f;
        }

        TimeScaleForDebug = Mathf.Clamp(TimeScaleForDebug, 0.1f, 10.0f);
        Time.timeScale    = TimeScaleForDebug;
    }
示例#2
0
 // Update is called once per frame
 protected override void Update()
 {
     if (!IsLockAction())
     {
         IdleAction.Idle();
     }
     base.Update();
 }