Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Scripts / AI / FSM / Actions / EntryActionInvestigate.cs
@Rackday Rackday on 21 Aug 420 bytes Project Added
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. [CreateAssetMenu(menuName = "Finite State Machine/Action/Investigate Entry Action")]
  5. public class EntryActionInvestigate : Action
  6. {
  7. public override void Act(FiniteStateMachine fsm)
  8. {
  9. Debug.Log("Player At: " + fsm.target.transform.position);
  10. fsm.GetAgent().SetDestination(fsm.target.transform.position);
  11. }
  12. }