//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 Awake() { base.Awake(); //vendorUI.CreatePages(items); CreateEventSubscriptions(); //InitializeBuyBackList(); //buyBackCollection = new VendorCollection(); buyBackCollection = ScriptableObject.CreateInstance(typeof(VendorCollection)) as VendorCollection; }