using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 先攻阶段 /// public class PhaseInitiative : BattlePhase { public PhaseInitiative(BattleSimulator simulator) : base(simulator) { } public override void StartPhase() { // throw new System.NotImplementedException(); } public override void UpdatePhase() { BattleQueue.ForEach(obj => obj.sequence = Dice.Roll20(obj.DexModifier)); BattleQueue.OrderByDescending(c => c.sequence); // TODO:需要添加突袭阶段 simulator.Transition(PhaseType.回合阶段); // TODO:记录器 Debug.Log("先攻"); } public override void QuitPhase() { // throw new System.NotImplementedException(); } }