//追加单个行动 public void AppendBattleAction(BattleAction action) { if (action == null) { return; } //为action编号 action.sn = battleActions.Count; battleActions.Add(action); }
//追加单个行动 public void AppendBattleAction(BattleAction action) { if (action == null) { return; } if (msgAction.battleActions == null) { msgAction.battleActions = new List <BattleAction>(); } msgAction.battleActions.Add(action); }