Beispiel #1
0
 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();
 }
Beispiel #2
0
 // 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");
 }