Beispiel #1
0
    private State moveState()
    {//move状态执行完移动任务跳向arise状态
        StateWithEventMap state = TaskState.Create(delegate
        {
            //TaskWait tw = new TaskWait();
            //tw.setAllTime(0.1f);
            //return tw;
            return(taskSet);
        }, _fsm, "arise");

        //StateWithEventMap state = new StateWithEventMap();
        //state.onStart += delegate
        //{
        //    TaskManager.Run(taskSet);
        //    //taskSet.init();
        //};
        state.onOver += delegate
        {
            taskSet.Clear();
            //_fsm.post("toArise");
        };
        //state.addEvent("toArise", "arise");
        //StateWithEventMap state = new StateWithEventMap();
        //state.addEvent("swipe", "arise");
        return(state);
    }