Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public void onStanceChanged(BodyStance s)
 {
     currentStance = stanceManager.CurrentStanceData();
 }