Esempio n. 1
0
 private void Start()
 {
     foreach (ModelActions action in ManagerActions.GetInstance().actions)
     {
         GameObject go = Instantiate <GameObject>(botao, transform);
         go.name = action.name;
         go.GetComponent <Button>().onClick.AddListener(() => AddActionToList(action));
         go.GetComponentInChildren <Text>().text = action.name;
     }
 }
        public ManagerMainMenu(StoreAppContext context, IManagerRepoActions managerRepoActions, ILocationRepoActions locationRepoActions, IInventoryRepoActions inventoryRepoActions, IOrderRepoActions orderRepoActions, IBaseballBatRepoActions batRepoActions, Location location)
        {
            this.context              = context;
            this.managerRepoActions   = managerRepoActions;
            this.inventoryRepoActions = inventoryRepoActions;
            this.orderRepoActions     = orderRepoActions;
            this.batRepoActions       = batRepoActions;

            this.managerActions   = new ManagerActions(context, managerRepoActions);
            this.inventoryActions = new InventoryActions(context, inventoryRepoActions);
            this.orderActions     = new OrderActions(context, orderRepoActions);
            this.batActions       = new BaseballBatActions(context, batRepoActions);

            this.location = location;
        }
        public LoginMenu(StoreAppContext context, IManagerRepoActions managerRepoActions, ICustomerRepoActions customerRepoActions, ILocationRepoActions locationRepoActions, IBaseballBatRepoActions baseballBatRepoActions, IOrderRepoActions orderRepoActions, IInventoryRepoActions inventoryRepoActions)
        {
            this.context = context;

            this.managerRepoActions     = managerRepoActions;
            this.customerRepoActions    = customerRepoActions;
            this.locationRepoActions    = locationRepoActions;
            this.inventoryRepoActions   = inventoryRepoActions;
            this.baseballBatRepoActions = baseballBatRepoActions;
            this.orderRepoActions       = orderRepoActions;

            this.managerActions  = new ManagerActions(context, managerRepoActions);
            this.customerActions = new CustomerActions(context, customerRepoActions);
            this.locationActions = new LocationActions(context, locationRepoActions);
        }