12345678910111213141516171819202122232425 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using KairoEngine.Core;
- namespace KairoEngine.CharacterSystem
- {
- public class CharacterStopMoveCommand : ICommand
- {
- CharacterController character;
- public CharacterStopMoveCommand(CharacterController character)
- {
- this.character = character;
- }
- public void Execute()
- {
- if(character == null) return;
- ActionController actionController = character.GetComponent<ActionController>();
- actionController.CancelAction(typeof(CharacterMoveToPositionAction).ToString());
- }
- }
- }
|