示例#1
0
        //protected List<CurrencyAmountController> currencyAmountControllers = new List<CurrencyAmountController>();

        public override void Configure(SystemGameManager systemGameManager)
        {
            base.Configure(systemGameManager);
            playerManager      = systemGameManager.PlayerManager;
            uIManager          = systemGameManager.UIManager;
            messageFeedManager = uIManager.MessageFeedManager;
            currencyConverter  = systemGameManager.CurrencyConverter;

            //vendorUI.CreatePages(items);
            CreateEventSubscriptions();
            //InitializeBuyBackList();
            //buyBackCollection = new VendorCollection();
            buyBackCollection = ScriptableObject.CreateInstance(typeof(VendorCollection)) as VendorCollection;

            currencyBarController.Configure(systemGameManager);
            currencyBarController.SetToolTipTransform(rectTransform);

            foreach (VendorButton vendorButton in vendorButtons)
            {
                vendorButton.Configure(systemGameManager);
            }

            /*
             * foreach (CurrencyAmountController currencyAmountController in currencyAmountControllers) {
             *  currencyAmountController.Configure(systemGameManager);
             * }
             */
        }
        public override void SetGameManagerReferences()
        {
            base.SetGameManagerReferences();

            saveManager        = systemGameManager.SaveManager;
            uIManager          = systemGameManager.UIManager;
            messageFeedManager = uIManager.MessageFeedManager;
            //inventoryManager = systemGameManager.InventoryManager;
        }