Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Scripts / AI / FSM / Actions / DebugAction.cs
@Rackday Rackday on 21 Aug 356 bytes Project Added
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. [CreateAssetMenu(menuName ="Finite State Machine/Action/Debug")]
  5. public class DebugAction : Action
  6. {
  7. [SerializeField] private string text;
  8. public override void Act(FiniteStateMachine fsm)
  9. {
  10. Debug.Log(fsm.gameObject.name+" : "+this.name+" : "+text);
  11. }
  12. }