Esempio n. 1
0
        // Use this for initialization
        private void Awake()
        {
            _facingCosineVal = Mathf.Cos(FacingCosine * Mathf.Deg2Rad);

            _rb             = GetComponent <Rigidbody>();
            _steeringBasics = GetComponent <SteeringBasics>();

            SteeringBasics.RbConstraints(_rb);
        }
Esempio n. 2
0
 private void Awake()
 {
     _steeringBasics = GetComponent <SteeringBasics>();
     _rb             = GetComponent <Rigidbody>();
     SteeringBasics.RbConstraints(_rb);
 }