CharacterIdleTaskAction.cs 620 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using NodeCanvas.Framework;
  5. using ParadoxNotion.Design;
  6. using KairoEngine.Core;
  7. namespace KairoEngine.CharacterSystem
  8. {
  9. [Category("KairoEngine")]
  10. public class CharacterIdleTaskAction : ActionTask
  11. {
  12. [BlackboardOnly, RequiredField] public BBParameter<CharacterController> character;
  13. protected override void OnExecute()
  14. {
  15. ICommand cancelCommand = new CancelAtionsCommand(character.value);
  16. CommandInvoker.AddCommand(cancelCommand);
  17. EndAction(true);
  18. }
  19. }
  20. }