Compare commits

..

No commits in common. "bd27ea089ce35e698bfad8ffe741241ae6665851" and "68f004d85fe112d31c038b68e920711e5d0e4bf0" have entirely different histories.

6 changed files with 24 additions and 25 deletions

View File

@ -134,6 +134,7 @@ GameObject:
- component: {fileID: 123179489}
- component: {fileID: 123179488}
- component: {fileID: 123179486}
- component: {fileID: 123179490}
m_Layer: 0
m_Name: UICamera
m_TagString: Untagged
@ -251,6 +252,18 @@ Transform:
m_Children: []
m_Father: {fileID: 2081420527}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &123179490
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 123179485}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fff49514adc6448d0a4cbea3ff37308b, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &158007422
GameObject:
m_ObjectHideFlags: 0

View File

@ -45,7 +45,6 @@ public abstract class GuideStepBase
/// </summary>
public async void StartGuide()
{
GuideMananger.Instance.IsGuiding = true;
await UniTask.Delay(500); // 延迟时间开始
DoBeforeGuide();
SubStartGuide();
@ -117,5 +116,6 @@ internal sealed class WinLevel : GuideStepBase
protected override void SubStartGuide()
{
GuideMananger.Instance.IsGuiding = true;
}
}

View File

@ -12,6 +12,7 @@ public class IAPHandle : IStoreListener
private const string Environment = "production";
public Action<string> SendReceiptAction;
public Action<string> SetApplicationUseId;
public Action<string> OnBreakPurchase;
public bool ClientVerify;
public List<string> ConsumableGoods;
public List<string> NonConsumableGoods;
@ -23,7 +24,6 @@ public class IAPHandle : IStoreListener
private IGooglePlayStoreExtensions _googlePlayStoreExtensions;
private Action<string> _onPurchaseSuccess;
private Action _onPurchaseFail;
public Action<string> OnRestorePurchase;
private bool _isInitialized;
/// <summary>
@ -150,7 +150,7 @@ public class IAPHandle : IStoreListener
}
#endregion
#region 购买
/// <summary>
@ -198,14 +198,7 @@ public class IAPHandle : IStoreListener
}
else
{
if (_onPurchaseSuccess != null)
{
_onPurchaseSuccess.Invoke(_curProduct);
}
else
{
OnRestorePurchase?.Invoke(_curProduct);
}
_onPurchaseSuccess?.Invoke(_curProduct);
}
}
@ -227,14 +220,7 @@ public class IAPHandle : IStoreListener
}
else
{
if (_onPurchaseSuccess != null)
{
_onPurchaseSuccess.Invoke(_curProduct);
}
else
{
OnRestorePurchase?.Invoke(_curProduct);
}
_onPurchaseSuccess?.Invoke(_curProduct);
}
}
}

View File

@ -15,11 +15,11 @@ public class IAPManager : Singlenton<IAPManager>
/// 添加商品并初始化IAP
/// </summary>
public void AddGoods(List<string> consumableGoods, List<string> nonConsumableGoods,
Action<string> onRestorePurchase = null)
Action<string> onBreakPurchase = null)
{
_helper.ConsumableGoods = consumableGoods;
_helper.NonConsumableGoods = nonConsumableGoods;
_helper.OnRestorePurchase = onRestorePurchase;
_helper.OnBreakPurchase = onBreakPurchase;
try
{

View File

@ -103,10 +103,10 @@ namespace Gameplay.LoadingExecutor
await UIManager.Instance.OpenWindow(UIConstants.UIStartMain);
//用户协议 -> 登录 -> 数据同步
if (AppInfoManager.Instance.UpdateConfirm && !GuideMananger.Instance.IsGuiding)
if (AppInfoManager.Instance.UpdateConfirm)
await UIManager.Instance.OpenWindow(UIConstants.UISyncTip);
if (!AppInfoManager.Instance.CheckIfLogin() && !LoginManager.Instance.ShowLogin && !GuideMananger.Instance.IsGuiding)
if (!AppInfoManager.Instance.CheckIfLogin() && !LoginManager.Instance.ShowLogin)
await UIManager.Instance.OpenWindow(UIConstants.UILogin);
if (!PlayerPrefs.HasKey(LevelConstants.FirstLaunch))

View File

@ -136,7 +136,7 @@ PlayerSettings:
vulkanEnableLateAcquireNextImage: 0
vulkanEnableCommandBufferRecycling: 1
loadStoreDebugModeEnabled: 0
bundleVersion: 1.0.2
bundleVersion: 1.0.1
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
@ -164,7 +164,7 @@ PlayerSettings:
buildNumber:
Standalone: 0
VisionOS: 0
iPhone: 3
iPhone: 1
tvOS: 0
overrideDefaultApplicationIdentifier: 1
AndroidBundleVersionCode: 1