예제 #1
0
        //追加单个行动
        public void AppendBattleAction(BattleAction action)
        {
            if (action == null)
            {
                return;
            }

            //为action编号
            action.sn = battleActions.Count;

            battleActions.Add(action);
        }
예제 #2
0
        //追加单个行动
        public void AppendBattleAction(BattleAction action)
        {
            if (action == null)
            {
                return;
            }

            if (msgAction.battleActions == null)
            {
                msgAction.battleActions = new List <BattleAction>();
            }

            msgAction.battleActions.Add(action);
        }