in Assets/Puppet/PuppetAppCenter.cs [108:153]
private IEnumerator OnEnableCoroutine()
{
AllowNetworkRequests.isOn = AppCenter.NetworkRequestsAllowed;
var isEnabled = AppCenter.IsEnabledAsync();
yield return isEnabled;
Enabled.isOn = isEnabled.Result;
var installId = AppCenter.GetInstallIdAsync();
yield return installId;
if (installId.Result.HasValue)
{
InstallIdLabel.text = installId.Result.ToString();
}
if (AppSecretCached != null && AppSecretCached.Length > 0)
{
AppSecret.text = AppSecretCached;
}
else
{
var appSecret = AppCenter.GetSecretForPlatformAsync();
yield return appSecret;
AppSecret.text = appSecret.Result;
}
if (MaxSizeCached != null && MaxSizeCached.Length > 0)
{
MaxStorageSize.text = MaxSizeCached;
}
else
{
var storageSize = AppCenter.GetStorageSizeAsync();
yield return storageSize;
MaxStorageSize.text = storageSize.Result <= 0 ? "Unchanged" : storageSize.Result.ToString();
}
DeviceIdLabel.text = SystemInfo.deviceUniqueIdentifier;
SdkVersionLabel.text = AppCenter.GetSdkVersion();
LogLevel.value = AppCenter.LogLevel - Microsoft.AppCenter.Unity.LogLevel.Verbose;
StartupType.value = StartupTypeCached;
var isDistributeEnabled = Distribute.IsEnabledAsync();
yield return isDistributeEnabled;
DistributeEnabled.isOn = isDistributeEnabled.Result;
UserId.text = _customUserId;
}