AppRuntimesValidationStartup.cs 677 B

1234567891011121314151617181920
  1. using UnityEngine;
  2. public sealed class AppRuntimesValidationStartup : MonoBehaviour
  3. {
  4. private async void Start()
  5. {
  6. #if UNITY_IOS
  7. System.GC.KeepAlive((System.Action)IAPWrapper.InitializeSK1);
  8. System.GC.KeepAlive((System.Action)IAPWrapper.InitializeSK2);
  9. System.GC.KeepAlive((System.Action)IAPWrapper.PurchaseConsumable);
  10. System.GC.KeepAlive((System.Action)IAPWrapper.PurchaseNonConsumable);
  11. System.GC.KeepAlive((System.Action)IAPWrapper.PurchaseSubscription);
  12. #endif
  13. Debug.Log(AppRuntimesStreamingAssets.GetPath("meta-logo.png"));
  14. AppRuntimes.Initialization();
  15. await AppRuntimes.CheckVersion();
  16. }
  17. }