예제 #1
0
 public void Update()
 {
     JumpButton.Get();
     ShootButton.Get();
     HorizontalAxis.AxisUpdate();
     if (JumpButton.Down)
     {
         jumpCounter = jumpBuffer;
     }
     if (ShootButton.Held)
     {
         shootCounter = shootBuffer;
     }
 }
예제 #2
0
    void Update()
    {
        JumpButton.Get();
        ShootButton.Get();
        HorizontalAxis.AxisUpdate();

        //it should be placed here instead of FixedUpdate
        if (JumpButton.Down)
        {
            jumpCounter = jumpBuffer;
        }
        if (ShootButton.Held)
        {
            shootCounter = shootBuffer;
        }
    }