Пример #1
0
    public void EVENT_Delivery()
    {
        int quantity = GetQuantityFromInputField();

        model.Deliver(quantity);
        view.Refresh();
    }
    void Start()
    {
        //model
        model = new StorageModel();

        //view
        view = new StorageView();
        view.SetModel(model);
        view.SetUITexts(textUnits, textNealyfull);
        view.Refresh();

        //controller
        controller = new StorageController();
        controller.SetModel(model);
        controller.SetView(view);
        controller.SetInputFieldDelivery(inputFieldDelivery);
    }