Exemple #1
0
        //等待玩家的操作
        private IEnumerator PlayManualAction(BattleUnitManualAction action)
        {
            if (action == null)
            {
                UtilityHelper.LogError("Error BattleHeroManualAction");
                yield break;
            }

            UpdateRenderState(BattleUnitRenderState.Action);

            //通知战场管理器
            BattleFieldRenderer.Instance.SetManualBattleUnit(this);
        }
Exemple #2
0
        //手动操作
        private HeroActionState ManualAction()
        {
            //重置手动操作状态
            manualActionState |= ManualActionState.Move;
            manualActionState |= ManualActionState.SkillOrItem;
            BroadcastManualStateChanged();

            //创建一个手动操作的行动用于显示
            BattleUnitManualAction action = BattleUnitActionEvent.CreateEvent <BattleUnitManualAction>(BattleUnitActionType.ManualOperate, this);

            battleField.AppendBattleAction(action);

            return(HeroActionState.WaitForPlayerChoose);
        }