Esempio n. 1
0
    /// <summary>
    /// When the corresponding button is clicked, get and display the value of the given key associated to the current game.
    /// </summary>
    public void Button_DisplayGameKey()
    {
        // Default hardcoded values to use if no InputField elements references are assigned
        string key = "TestString";

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

        // Call the template method
        GameVFSFeatures.Handling_DisplayGameKey(key);
    }
Esempio n. 2
0
 /// <summary>
 /// When the corresponding button is clicked, get and display the value of all keys associated to the current game.
 /// </summary>
 public void Button_DisplayAllGameKeys()
 {
     // Call the template method
     GameVFSFeatures.Handling_DisplayGameKey(null);
 }