コード例 #1
0
    // 处理下一个Action
    public void MoveNext()
    {
        if (actions.Count > 0)
        {
            BaseAction action = actions[0];
            actions.RemoveAt(0);

            BaseHandler handle = handleFactory.GetHandle(action.type);
            handle.Handle(action);
        }
        else
        {
            // 战斗结束
        }
    }