Exemplo n.º 1
0
        protected override void OnInitialised()
        {
            if (_detectedObject != null)
            {
                Owner.transform.up = (_detectedObject.transform.position - Owner.gameObject.transform.position).normalized;
            }

            _initialLocation = Owner.transform.position;
            _inProgress      = true;
            _emote.SetEmoteState(EEmoteState.Alerted);
            _pathfinding.SetFollowTarget(_detectedObject);

            AddSubGoal(new AttackTargetGoal(Owner, _detectedObject));
        }
Exemplo n.º 2
0
 public override void Initialise()
 {
     _currentStatus = EGoalStatus.InProgress;
     _ownerPathfindingInterface.SetFollowTarget(_currentTarget);
 }