private void SignedIn(AuthHuaweiId authHuaweiId) { Debug.Log("[HMS]: SignedIn"); iapManager = GetComponent <IapManager>(); iapManager.OnCheckIapAvailabilitySuccess = LoadStore; iapManager.OnCheckIapAvailabilityFailure = (error) => { Debug.Log($"[HMSPlugin]: IAP check failed. {error.Message}"); }; iapManager.CheckIapAvailability(); }
// Start is called before the first frame update /// <summary> /// /// </summary> void Start() { Debug.Log($"[HMSPlugin]: IAP checkxxxx"); iapManager = GetComponent <IapManager>(); iapManager.OnCheckIapAvailabilitySuccess = LoadStore; iapManager.OnCheckIapAvailabilityFailure = (error) => { Debug.Log($"[HMSPlugin]: IAP check failed. {error.Message}"); }; iapManager.CheckIapAvailability(); Debug.Log($"[HMSPlugin]: IAP checkxxxx2"); }