예제 #1
0
 public void FixedUpdate()
 {
     if (m_currentState != null)
     {
         m_currentState.FixedUpdate();
     }
 }
예제 #2
0
    private void FixedUpdate()
    {
        if (freezePlayerState)
        {
            return;
        }

        ProcessTimers();
        currentState.FixedUpdate(this);
    }
예제 #3
0
    private void FixedUpdate()
    {
        wasGrounded = isGrounded;
        isGrounded  = false;
        Collider2D[] colliders = Physics2D.OverlapCircleAll(groundCheck.transform.position, groundCheckRadius);
        for (int i = 0; i < colliders.Length; i++)
        {
            if (!colliders[i].tag.Equals(Globals.Tags.Player))
            {
                isGrounded = true;
                if (!wasGrounded)
                {
                    // Land.
                }
            }
        }

        currentState.FixedUpdate(this);
    }
예제 #4
0
 void FixedUpdate()
 {
     currentState.FixedUpdate(this);
 }
예제 #5
0
 public void FixedUpdate()
 {
     _state.FixedUpdate();
 }
예제 #6
0
 protected override void FixedUpdate()
 {
     currentState.FixedUpdate();
     base.FixedUpdate();
 }