//等待玩家的操作 private IEnumerator PlayManualAction(BattleHeroManualAction action) { if (action == null) { UtilityHelper.LogError("Error BattleHeroManualAction"); yield break; } UpdateRenderState(BattleUnitRenderState.Action); //通知战场管理器 BattleFieldRenderer.Instance.SetManualBattleUnit(this); }
//手动操作 private HeroActionState ManualAction(List <BattleAction> heroActions) { //重置手动操作状态 manualActionState |= ManualActionState.Move; manualActionState |= ManualActionState.Skill; //创建一个手动操作的行动用于显示 BattleHeroManualAction action = new BattleHeroManualAction(this); heroActions.Add(action); return(HeroActionState.WaitForPlayerChoose); }
//等待玩家的操作 private IEnumerator PlayManualAction(BattleHeroManualAction action) { if (action == null) { UtilityHelper.LogError("Error BattleHeroManualAction"); yield break; } AddBattleBeSelected(this, EGameConstL.Color_GreenApple); //通知战场管理器 BattleFieldRenderer.Instance.SetManualBattleUnit(this); }