using RetroDev.Secrets;
using UnityEngine;
using UnityEngine.UI;

public class GetKey : MonoBehaviour
{
    // Declare a new secret object
    public Secrets secret;

    private void Awake()
    {
        // Instantiate the object
        secret = new Secrets();
    }

    // Retrieve and assing the value of a secret
    public void Start()
    {
        string secretKey = "Replace_with_your_key";

        // Returns the value for the specified key
        string mySecret = secret.GetSecret(secretKey);

        Debug.Log($"Value retrieved for {secretKey}: {mySecret}");
    }
}
