12345678910111213141516171819202122232425 |
- using KairoEngine.Core;
- using KairoEngine.Inventory;
- namespace KairoEngine.CharacterSystem
- {
- public class UnequipItemCommand : ICommand
- {
- CharacterController character;
- public UnequipItemCommand(CharacterController character)
- {
- this.character = character;
- }
- public void Execute()
- {
- CharacterUnequipItemAction action = new CharacterUnequipItemAction(character);
- ActionController actionController = character.GetComponent<ActionController>();
- if(actionController.HasAction(action) == false)
- {
- actionController.AddAction(action);
- }
- }
- }
- }
|