【Bug】蓝图没加载、金币显示错误
parent
9840b222ed
commit
d952f891d6
|
@ -40,7 +40,7 @@ public class UIBuyGoodsController : UIWindow
|
||||||
_rawImageGaussianBlurMask = GetComponent<RawImage>("GaussianBlurMask");
|
_rawImageGaussianBlurMask = GetComponent<RawImage>("GaussianBlurMask");
|
||||||
BindButton("Bg_Buy/Btn/Btn_Cancel", () =>
|
BindButton("Bg_Buy/Btn/Btn_Cancel", () =>
|
||||||
{
|
{
|
||||||
CloseWindow();
|
CloseWindow(true);
|
||||||
EventManager.Instance.Send(EventManager.EventName.ShowGfx);
|
EventManager.Instance.Send(EventManager.EventName.ShowGfx);
|
||||||
LevelManager.Instance.IsPause = false;
|
LevelManager.Instance.IsPause = false;
|
||||||
BIManager.Instance.TrackEventLevel(Event.level_cancel_buy);
|
BIManager.Instance.TrackEventLevel(Event.level_cancel_buy);
|
||||||
|
@ -124,7 +124,7 @@ public class UIBuyGoodsController : UIWindow
|
||||||
|
|
||||||
private void CloseWin()
|
private void CloseWin()
|
||||||
{
|
{
|
||||||
CloseWindow();
|
CloseWindow(true);
|
||||||
if (_curPropData == null) return;
|
if (_curPropData == null) return;
|
||||||
AssetManager.Instance.Unload(_curPropData.IconPath);
|
AssetManager.Instance.Unload(_curPropData.IconPath);
|
||||||
}
|
}
|
||||||
|
@ -163,10 +163,10 @@ public class UIBuyGoodsController : UIWindow
|
||||||
UIManager.Instance.OpenWindow(UIConstants.UITips, "Tip_AD_NotReady", () => { });
|
UIManager.Instance.OpenWindow(UIConstants.UITips, "Tip_AD_NotReady", () => { });
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OpenShopInLevel()
|
private async void OpenShopInLevel()
|
||||||
{
|
{
|
||||||
CommonUIUtils.CaptureScreenshot();
|
CommonUIUtils.CaptureScreenshot();
|
||||||
UIManager.Instance.OpenWindow(UIConstants.UIShop);
|
await UIManager.Instance.OpenWindow(UIConstants.UIShop);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void BuyGoodsInLevel(PropType prop)
|
private async void BuyGoodsInLevel(PropType prop)
|
||||||
|
|
|
@ -49,9 +49,12 @@ namespace Framework.GameBuild
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnDestroy()
|
private void OnDestroy()
|
||||||
|
{
|
||||||
|
if (!BuildManager.Instance.BuildInGame)
|
||||||
{
|
{
|
||||||
BuildManager.Instance.Release();
|
BuildManager.Instance.Release();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private BuildData JsonToLevelData(TextAsset jsonText)
|
private BuildData JsonToLevelData(TextAsset jsonText)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue