Пример #1
0
    /// <summary>
    /// When the corresponding button is clicked, get and display the value of the given key associated to the current logged in gamer.
    /// </summary>
    public void Button_DisplayGamerKey()
    {
        // Default hardcoded values to use if no InputField elements references are assigned
        string key = "TestString";

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

        // Call the template method
        GamerVFSFeatures.Handling_DisplayGamerKey(key);
    }
Пример #2
0
 /// <summary>
 /// When the corresponding button is clicked, get and display the value of all keys associated to the current logged in gamer.
 /// </summary>
 public void Button_DisplayAllGamerKeys()
 {
     // Call the template method
     GamerVFSFeatures.Handling_DisplayGamerKey(null);
 }