public override bool CheckAndExecute(CharacterPawn pawn, ActorInstance.ActorBase actor) { if (pawn.RemainMovePoint <= 0) { UIManager.Instance.Message("Not enough Move-Point!"); return(false); } bool result = base.CheckAndExecute(pawn, actor); //consume all move-points pawn.ConsumeMovePoint(pawn.RemainMovePoint); return(result); }
public static void ConsumeAllMovePoint(CharacterPawn pawn, ActorBase actor) { pawn.ConsumeMovePoint(pawn.RemainMovePoint); }
public static void ConsumeMovePoint(CharacterPawn pawn, ActorBase actor, int value) { pawn.ConsumeMovePoint(value); }