Example #1
0
 public void Start()
 {
     originalLocalPos = head.localPosition;
     cr      = GetComponent <mvmt::CharacterMotor>();
     au      = (GetComponent <AudioSource>()) ?? gameObject.AddComponent <AudioSource>();
     prevPos = GetComponent <Rigidbody>().position;
 }
 public void Start()
 {
     originalLocalPos = head.localPosition;
     cr = GetComponent<mvmt::CharacterMotor>();
     au = (GetComponent<AudioSource>()) ?? gameObject.AddComponent<AudioSource>();
     prevPos = GetComponent<Rigidbody>().position;
 }