public void CreateGoldRewardButton() { currentGoldRewardButton = Instantiate(PrefabHolder.Instance.GoldRewardButton, RewardButtonParent.transform); GoldRewardButton gwrButton = currentGoldRewardButton.GetComponent <GoldRewardButton>(); gwrButton.InitializeSetup(); }
// Create Buttons + Game Objects #region public void CreateGoldRewardButton() { Debug.Log("RewardScreen.CreateGoldRewardButton() called..."); currentGoldRewardButton = Instantiate(PrefabHolder.Instance.GoldRewardButton, RewardButtonParent.transform); GoldRewardButton gwrButton = currentGoldRewardButton.GetComponent <GoldRewardButton>(); gwrButton.InitializeSetup(); }