示例#1
0
 public void ApplyModel(iComponentModel data)
 {
     model = data as ScreenPlayerInventoryModel;
     localScrollList.ApplyModel(model.localInventoryScroll);
     placeButton.SetStyle(placeButtonStyle);
     placeButton.Create(new IconButtonModel(ScreenPlayerInventorySignals.placeButtonClicked));
 }
示例#2
0
        public void ApplyModel(iComponentModel data)
        {
            model = data as ScreenMarketModel;

            localScrollList.ApplyModel(model.localInventoryScroll);
            shopScrollList.ApplyModel(model.shopInventoryScroll);

            UpdateModel();
        }
        public void ApplyModel(iComponentModel data)
        {
            model = data as ScreenInventoryTransferModel;

            localScrollList.ApplyModel(model.localInventoryScroll);

            if (model.remoteInventoryType == ObjectInventoryTypes.Type.Scroll)
            {
                remoteSubmodule = remoteScrollList;
            }
            else if (model.remoteInventoryType == ObjectInventoryTypes.Type.Two)
            {
                remoteSubmodule = screenMachineProcessor;
            }

            remoteSubmodule.ApplyModel(model.remoteInventory as iComponentModel);
            var monoSubmodule = remoteSubmodule as MonoBehaviour;

            monoSubmodule.gameObject.SetActive(true);
        }