using UnityEngine; using UnityEngine.UI; using EdjCase.ICP.Agent.Agents; using EdjCase.ICP.Agent.Identities; using EdjCase.ICP.Candid.Models; namespace IC.GameKit { public class TestICPAgent : MonoBehaviour { public string greetFrontend = "https://6x7nu-oaaaa-aaaan-qdaua-cai.icp0.io/"; public string greetBackendCanister = "72rj2-biaaa-aaaan-qdatq-cai"; Text mMyPrincipalText = null; Button mGreetButton = null; Ed25519Identity mEd25519Identity = null; DelegationIdentity mDelegationIdentity = null; public Ed25519Identity TestIdentity { get { return mEd25519Identity; } } internal DelegationIdentity DelegationIdentity { get { return mDelegationIdentity; } set { mDelegationIdentity = value; if (mDelegationIdentity != null && mGreetButton != null) { mGreetButton.interactable = true; } } } // Start is called before the first frame update void Start() { var go = GameObject.Find("My Princinpal"); mMyPrincipalText = go?.GetComponent(); var buttonGo = GameObject.Find("Button_Greet"); mGreetButton = buttonGo?.GetComponent