// Start is called before the first frame update void Start() { wander = GetComponent <SteeringWander>(); seek = GetComponent <SeekTarget>(); shoot = GetComponent <Shoot>(); patrol = GetComponent <PatrolAgent>(); flee = GetComponent <Flee>(); }
private void Awake() { patrolAgent = new PatrolAgent(minRange, maxRange, maxRange); startPosition = this.transform.position; targetPosition = startPosition; anim = GetComponent <Animator>(); limitVisionAngle = visionAngle; player = GameObject.FindGameObjectWithTag("Player"); navMeshAgent = GetComponent <NavMeshAgent>(); }
// Use this for initialization void Start() { _patrolAgent = GetComponent <PatrolAgent> (); _isLocked = !_patrolAgent.StartOnAwake; _wasLocked = _isLocked; }
// Use this for initialization void Start() { _patrolAgent = GetComponent <PatrolAgent> (); }