Exemplo n.º 1
0
 public void FixedUpdate()
 {
     if (m_currentState != null)
     {
         m_currentState.FixedUpdate();
     }
 }
Exemplo n.º 2
0
    private void FixedUpdate()
    {
        if (freezePlayerState)
        {
            return;
        }

        ProcessTimers();
        currentState.FixedUpdate(this);
    }
Exemplo n.º 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);
    }
Exemplo n.º 4
0
 void FixedUpdate()
 {
     currentState.FixedUpdate(this);
 }
Exemplo n.º 5
0
 public void FixedUpdate()
 {
     _state.FixedUpdate();
 }
Exemplo n.º 6
0
 protected override void FixedUpdate()
 {
     currentState.FixedUpdate();
     base.FixedUpdate();
 }