public void CreateGoldRewardButton()
    {
        currentGoldRewardButton = Instantiate(PrefabHolder.Instance.GoldRewardButton, RewardButtonParent.transform);
        GoldRewardButton gwrButton = currentGoldRewardButton.GetComponent <GoldRewardButton>();

        gwrButton.InitializeSetup();
    }
Example #2
0
    // 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();
    }