Ejemplo n.º 1
0
        private void FollowPlayer()
        {
            Vector3 target = GetPlayerPosition();

            Data.Debug.finalPosition = target;
            SetDestination(target);

            if (!IsPlayerInRange())
            {
                Fsm.Idle();
            }
            else if (IsPlayerInRangeToAttack())
            {
                Fsm.Attack();
            }
        }
Ejemplo n.º 2
0
 public void Attack(Vector3 targetPosition) => Fsm.Attack(targetPosition);