private void Start( ) { _navMeshAgent = GetComponent <NavMeshAgent>( ); _animator = GetComponent <Animator>( ); if (_patrolPath is null) { return; } transform.position = _patrolPath.GetWaypointPos(0); if (_patrolPath.NumWaypoints > 1) { transform.LookAt(_patrolPath.GetWaypointPos(1)); } guardPosition = transform.position; }