示例#1
0
 // Use this for initialization
 void Start()
 {
     sm = new ShieldModel();
     sv = new ShieldView();
     sv.SetModel(sm);
     sv.SetUiText(TextShieldStrengthValue, TextRepairableValue);
     sv.Refresh();
     sc = new ShieldController();
     sc.SetModel(sm);
     sc.SetView(sv);
 }
    private void Start()
    {
        model = new ShieldModel();

        view = new ShieldView();
        view.SetModel(model);
        view.SetText(Strength, isRepairable);
        view.TextAfterChanges();

        controller = new ShieldController();
        controller.SetModel(model);
        controller.SetView(view);
    }
    // Use this for initialization
    void Start()
    {
        model = new ShieldModel();

        view = new ShieldView();
        view.SetModel(model);
        view.SetUIItems(textStrength, textRepair, imageShield);
        view.SetImages(images);
        view.Refresh();


        controller = new ShieldController();
        controller.SetModel(model);
        controller.SetView(view);
    }
    void Start()
    {
        // model
        shieldModel = new ShieldModel();

        // view
        shieldView = new ShieldView();
        shieldView.SetModel(shieldModel);
        shieldView.SetUITexts(strengthText, repairableText);
        shieldView.SetImages(shieldStrengthImage, shieldStengthImages);
        shieldView.Refresh();

        // controller
        shieldController = new ShieldController();
        shieldController.SetShieldModel(shieldModel);
        shieldController.SetShieldView(shieldView);
    }
示例#5
0
    void Start()
    {
        //model
        model = new ShieldModel();

        //view
        view = new ShieldView();
        view.SetModel(model);
        view.SetUITexts(StrengthText, TrueOrFalse);
        view.Refresh();

        //controller
        controller = new ShieldController();
        controller.SetModel(model);
        controller.SetView(view);
        controller.SetButtons(Damage1, Damage10);
    }
    void Start()
    {
        // Model
        model = new ShieldModel();

        // View
        view = new ShieldView();
        view.SetModel(model);
        view.SetUITexts(Damage1, Damage10);
        view.Refresh();

        //Controller
        controller = new ShieldController();
        controller.SetModel(model);
        controller.SetView(view);
        controller.SetDamage1Text(Damage1);
    }
    void Start()
    {
        // model
        model = new ShieldModel();

        //view
        view = new ShieldView();
        view.SetModel(model);
        view.SetUIText(textStrength, textIsRepairable);
        view.Refresh();

        //controller
        controller = new ShieldController();
        controller.SetModel(model);
        controller.SetView(view);
        controller.SetButtonOne(DamageOne);
        controller.SetButtonTen(DamageTen);
        controller.SetButtonTick(ButtonTick);
    }