コード例 #1
0
        private void DisplayCurrentSupplies()
        {
            List <CargoOrderSO> supplies = CargoManager.Instance.CurrentCategory.Orders;

            orderList.Clear();
            orderList.AddItems(supplies.Count);
            for (int i = 0; i < supplies.Count; i++)
            {
                GUI_CargoItem item = orderList.Entries[i] as GUI_CargoItem;
                item.Order = supplies[i];
            }
            categoryText.SetValueServer(CargoManager.Instance.CurrentCategory.CategoryName);
        }
コード例 #2
0
        private void DisplayCategoriesCatalog()
        {
            List <CargoCategory> categories = CargoManager.Instance.Supplies;

            orderList.Clear();
            orderList.AddItems(categories.Count);
            for (int i = 0; i < categories.Count; i++)
            {
                GUI_CargoItem item = orderList.Entries[i] as GUI_CargoItem;
                item.ReInit(categories[i]);
            }
            categoryText.SetValueServer("Categories");
        }
コード例 #3
0
        private void DisplayCurrentCart()
        {
            List <CargoOrder> currentCart = CargoManager.Instance.CurrentCart;

            orderList.Clear();
            orderList.AddItems(currentCart.Count);

            for (int i = 0; i < currentCart.Count; i++)
            {
                GUI_CargoItem item = orderList.Entries[i] as GUI_CargoItem;
                item.Order = currentCart[i];
                item.gameObject.SetActive(true);
            }
            if (cargoController.CurrentId())
            {
                confirmButtonText.SetValueServer("InvalidID");
            }
            CheckTotalPrice();
        }