Example #1
0
    public void Update()
    {
        if (m_currentActorState == null)
        {
            Start();
        }

        // Set animator
        m_currentActorState.Update();

        m_animator.SetBool("air", !m_rigidBody.onGround);

        m_animator.SetLayerWeight(1, (m_rigidBody.onGround && m_fallFrame == -1 ? 0.0f : 1.0f));
    }
Example #2
0
 public void Update()
 {
     CurrentState.Update();
 }