CharacterUnequipWeaponTaskAction.cs 755 B

1234567891011121314151617181920212223242526272829
  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 CharacterUnequipWeaponTaskAction : ActionTask
  11. {
  12. [BlackboardOnly, RequiredField] public BBParameter<CharacterController> character;
  13. protected override string info
  14. {
  15. get { return "Unequip Weapon"; }
  16. }
  17. protected override void OnExecute()
  18. {
  19. UnequipItemCommand unequipItemCommand = new UnequipItemCommand(character.value);
  20. CommandInvoker.AddCommand(unequipItemCommand);
  21. EndAction(true);
  22. }
  23. }
  24. }