Пример #1
0
    /// <summary>
    /// When the corresponding button is clicked, use a referral code to set the current logged in gamer's godfather.
    /// </summary>
    public void Button_UseReferralCode()
    {
        // Default hardcoded values to use if no InputField elements references are assigned
        string referralCode = null;

        // Check the referralCode value
        if (useReferralCode_ReferralCode == null)
        {
            Debug.LogWarning(string.Format(noReferenceFormat, "Godfather", "useReferralCode_ReferralCode"));
        }
        else if (!string.IsNullOrEmpty(useReferralCode_ReferralCode.text))
        {
            referralCode = useReferralCode_ReferralCode.text;
        }

        // Call the template method
        GodfatherFeatures.Handling_UseReferralCode(referralCode);
    }
Пример #2
0
 /// <summary>
 /// When the corresponding button is clicked, get and display the current logged in gamer's godfather.
 /// </summary>
 public void Button_DisplayGodfather()
 {
     // Call the template method
     GodfatherFeatures.Handling_DisplayGodfather();
 }