void Start() { m_Animator = GetComponent <Animator>(); m_Rigidbody = GetComponent <Rigidbody>(); m_Rigidbody.constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY | RigidbodyConstraints.FreezeRotationZ; m_OrigGroundCheckDistance = m_GroundCheckDistance; currentStance = stanceManager.CurrentStanceData(); myNormal = transform.up; started = true; }
public void onStanceChanged(BodyStance s) { currentStance = stanceManager.CurrentStanceData(); }