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);
        }
예제 #2
0
 public static void ConsumeAllMovePoint(CharacterPawn pawn, ActorBase actor)
 {
     pawn.ConsumeMovePoint(pawn.RemainMovePoint);
 }
예제 #3
0
 public static void ConsumeMovePoint(CharacterPawn pawn, ActorBase actor, int value)
 {
     pawn.ConsumeMovePoint(value);
 }