private Task ReportAppVersion() { if (!Configuration.General.SendVersionStats) { return(Task.CompletedTask); } try { return(VersionReporter.Report()); } catch (Exception ex) { LogTo.WarnException("Failed to report version info", ex); return(Task.CompletedTask); } }
void Awake() { DontDestroyOnLoad(this.gameObject); onInitializeSuccess = new UnityEvent(); onInitializeFailed = new UnityEvent(); onPurchaseSuccess = new PurchaseEvent(); onPurchaseFailed = new PurchaseEvent(); _builder = new AppcoinsConfigurationBuilder(); _appcoinsPurchasing = gameObject.AddComponent <AppcoinsPurchasing>(); _versionReporter = gameObject.AddComponent <BDSVersionReporter>(); if (_versionReporter == null) { //Debug.LogError("Failed initializing! Plugin prefab is missing BDS VersionReporter. Please use the unmodified version of the prefab."); Debug.LogError("Failed initializing! Plugin prefab is missing BDS VersionReporter. Please use the unmodified version of the prefab."); return; } }