Пример #1
0
        public void RevealShop()
        {
            shipMenu.SetActive(false);
            inventoryMenu.SetActive(false);
            equipmentMenu.SetActive(false);

            shopMenu.SetActive(true);

            ShopMenu menu = shopMenu.GetComponent <ShopMenu>();

            menu.PopulateWeaponList();
        }
Пример #2
0
        public void InitialiseHangar()
        {
            IEquipmentMenu equipment = equipmentMenu.GetComponent <IEquipmentMenu>();

            equipment.InitialiseMenu();

            ShopMenu shop = shopMenu.GetComponent <ShopMenu>();

            shop.InitialiseMenu(this);

            IShipMenu shipInterface = shipMenu.GetComponent <IShipMenu>();

            shipInterface.InitialiseMenu(this);

            SessionData.instance.OnUserTransaction.AddListener(UpdateCreditInfo);
            UpdateCreditInfo();
        }