コード例 #1
0
    void init()
    {
        c                 = new controller();
        v                 = new view();
        render            = new RendertoViewcommand();
        add               = new AddGoodscommand();
        once              = new Oncesessioncommand();
        task              = new AddTaskcommand();
        rtask             = new RenderTaskcommand();
        input             = new InputFieldcommand();
        boolCommend       = new BoolCommend();
        stringCommand     = new StringCommand();
        lightImageCommand = new LightImageCommand();
        studentCommand    = new Studentcommand();
        playerCommand     = new PlayerCommand();
        //	Packageview packageview =
        //THIS IS MORE VIEW BE WRITTER

        AdjustView(new Packageview());
        AdjustView(new dialogview());
        AdjustView(new taskview());
        AdjustView(new Studentview());
        AdjustCommand("once", once);
        AdjustCommand("RendertoViewcommand", render);
        AdjustCommand(Cmd.addItem, add);
        // later will be add delete task
        AdjustCommand("addtask", task);
        AdjustCommand("rtask", rtask);

        //Tip的操作
        tip = new TipTaskcommand();
        AdjustCommand(Cmd.showTip, tip);
        colorcommand = new Colorcommand();
        AdjustCommand(Cmd.showColor, colorcommand);
        AdjustCommand(Cmd.ShowImageAndText, input);
        AdjustCommand(Cmd.changeColor, input);
        AdjustCommand(Cmd.ChangeBool, boolCommend);
        AdjustCommand(Cmd.ChangeString, stringCommand);
        AdjustCommand(Cmd.ChangeColorInImage, lightImageCommand);
        AdjustCommand(Cmd.DeleteMinScore, studentCommand);
        AdjustCommand(Cmd.ShowStudentInformtion, studentCommand);
        AdjustCommand(Cmd.ShowMajorColor, studentCommand);
        AdjustCommand(Cmd.GetStudentModel, studentCommand);
        AdjustCommand(Cmd.ImproveAttack, playerCommand);
        //List<PlayerRoleInfo> playerInfo =  ArchiveManager.Instance.GetSamplelist<PlayerRoleInfo>();
        //Log(playerInfo[0].Attack);
        //PlayerRoleInfo player1 = ArchiveManager.Instance.GetSampleInIndex<PlayerRoleInfo>(0);
        //Debug.Log(player1.BreathingRate);
    }
コード例 #2
0
    void init()
    {
        c                 = new controller();
        v                 = new view();
        render            = new RendertoViewcommand();
        add               = new AddGoodscommand();
        once              = new Oncesessioncommand();
        task              = new AddTaskcommand();
        rtask             = new RenderTaskcommand();
        input             = new InputFieldcommand();
        boolCommend       = new BoolCommend();
        stringCommand     = new StringCommand();
        lightImageCommand = new LightImageCommand();
        studentCommand    = new Studentcommand();
        //	Packageview packageview =
        //THIS IS MORE VIEW BE WRITTER

        AdjustView(new Packageview());
        AdjustView(new dialogview());
        AdjustView(new taskview());
        AdjustView(new Studentview());
        AdjustCommand("once", once);
        AdjustCommand("RendertoViewcommand", render);
        AdjustCommand(Cmd.addItem, add);
        // later will be add delete task
        AdjustCommand("addtask", task);
        AdjustCommand("rtask", rtask);

        //Tip的操作
        tip = new TipTaskcommand();
        AdjustCommand(Cmd.showTip, tip);
        colorcommand = new Colorcommand();
        AdjustCommand(Cmd.showColor, colorcommand);
        AdjustCommand(Cmd.ShowImageAndText, input);
        AdjustCommand(Cmd.changeColor, input);
        AdjustCommand(Cmd.ChangeBool, boolCommend);
        AdjustCommand(Cmd.ChangeString, stringCommand);
        AdjustCommand(Cmd.ChangeColorInImage, lightImageCommand);
        AdjustCommand(Cmd.DeleteMinScore, studentCommand);
        AdjustCommand(Cmd.ShowStudentInformtion, studentCommand);
        AdjustCommand(Cmd.ShowMajorColor, studentCommand);
        AdjustCommand(Cmd.GetStudentModel, studentCommand);
    }