private void Start() { _animator = GetComponent <Animator>(); _ref = GetComponent <MovementBetweenPoints>(); _collider = GetComponent <CapsuleCollider>(); }
// Use this for initialization void Start() { _animator = GetComponent <Animator>(); _ref = GetComponent <MovementBetweenPoints>(); _rb = GetComponent <Rigidbody>(); }