【Bug】蓝图没加载、金币显示错误

iOS_release
zhangaotian 2024-08-21 14:34:05 +08:00
parent 9840b222ed
commit d952f891d6
2 changed files with 8 additions and 5 deletions

View File

@ -40,7 +40,7 @@ public class UIBuyGoodsController : UIWindow
_rawImageGaussianBlurMask = GetComponent<RawImage>("GaussianBlurMask");
BindButton("Bg_Buy/Btn/Btn_Cancel", () =>
{
CloseWindow();
CloseWindow(true);
EventManager.Instance.Send(EventManager.EventName.ShowGfx);
LevelManager.Instance.IsPause = false;
BIManager.Instance.TrackEventLevel(Event.level_cancel_buy);
@ -124,7 +124,7 @@ public class UIBuyGoodsController : UIWindow
private void CloseWin()
{
CloseWindow();
CloseWindow(true);
if (_curPropData == null) return;
AssetManager.Instance.Unload(_curPropData.IconPath);
}
@ -163,10 +163,10 @@ public class UIBuyGoodsController : UIWindow
UIManager.Instance.OpenWindow(UIConstants.UITips, "Tip_AD_NotReady", () => { });
}
private void OpenShopInLevel()
private async void OpenShopInLevel()
{
CommonUIUtils.CaptureScreenshot();
UIManager.Instance.OpenWindow(UIConstants.UIShop);
await UIManager.Instance.OpenWindow(UIConstants.UIShop);
}
private async void BuyGoodsInLevel(PropType prop)

View File

@ -50,7 +50,10 @@ namespace Framework.GameBuild
private void OnDestroy()
{
BuildManager.Instance.Release();
if (!BuildManager.Instance.BuildInGame)
{
BuildManager.Instance.Release();
}
}
private BuildData JsonToLevelData(TextAsset jsonText)