| | |
| | | |
| | | if (operationAgent == null) |
| | | { |
| | | BattleDebug.LogError("you should SetBattleMode before Run"); |
| | | Debug.LogError("you should SetBattleMode before Run"); |
| | | return; |
| | | } |
| | | |
| | |
| | | break; |
| | | } |
| | | |
| | | BattleDebug.LogError("battleMode is " + battleMode.ToString()); |
| | | } |
| | | |
| | | public virtual void AutoSetBattleMode() |
| | |
| | | // TurnNum; // 当前轮次 |
| | | // Len; |
| | | // Msg; //size = Len + |
| | | |
| | | |
| | | if (State == 4) |
| | | { |
| | | //已经结束并结算 |
| | |
| | | if (deadPackList.Count > 0) |
| | | { |
| | | DeathRecordAction recordAction = new DeathRecordAction(this, deadPackList); |
| | | recordPlayer.PlayRecord(recordAction); |
| | | recordPlayer.ImmediatelyPlay(recordAction); |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | if (index < 0 || index >= battleRootNode.redTeamNodeList.Count) |
| | | { |
| | | BattleDebug.LogError($"GetTeamNode: Index {index} is out of range for {battleCamp} camp."); |
| | | Debug.LogError($"GetTeamNode: Index {index} is out of range for {battleCamp} camp."); |
| | | return null; |
| | | } |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | BattleDebug.LogError($"BattleObject with ID {vNetData.ObjID} not found for reborn."); |
| | | Debug.LogError($"BattleObject with ID {vNetData.ObjID} not found for reborn."); |
| | | } |
| | | } |
| | | |