bug修改
This commit is contained in:
@@ -41,6 +41,7 @@ namespace BingoBrain
|
||||
private bool isRiseUI;
|
||||
|
||||
private Action CloseCb;
|
||||
public int ui_index = 0;
|
||||
|
||||
public GodPleAcUI(GodPleAcUICtrl ctrl) : base(ctrl)
|
||||
{
|
||||
@@ -103,6 +104,8 @@ namespace BingoBrain
|
||||
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
ui_index = UnityEngine.Random.Range(0, 99999);
|
||||
Debug.Log("fasongyiciguanbi" + ui_index);
|
||||
UICtrlDispatcher.Instance.Dispatch(SkinInfo.MaskUI_Open);
|
||||
if (args is GodDa displayModel)
|
||||
{
|
||||
@@ -184,7 +187,11 @@ namespace BingoBrain
|
||||
|
||||
if (completeSum >= ui.com_Coins.numChildren)
|
||||
{
|
||||
var tw6 = DOVirtual.DelayedCall(0.2f, CtrlCloseUI);
|
||||
var tw6 = DOVirtual.DelayedCall(0.2f, () =>
|
||||
{
|
||||
uiCtrlDispatcher.Dispatch(SkinInfo.GodPleAcUI_Close, ui_index);
|
||||
Debug.Log("fasongyiciguanbi" + ui_index);
|
||||
});
|
||||
tweenQueue.Enqueue(tw6);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
|
||||
using BingoBrain.Core;
|
||||
using BingoBrain.HotFix;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BingoBrain
|
||||
{
|
||||
@@ -29,6 +31,7 @@ namespace BingoBrain
|
||||
|
||||
public override void CloseUI(object args = null)
|
||||
{
|
||||
if (args != null && ui.ui_index != (int)args) return;
|
||||
if (ui != null && !ui.isClose)
|
||||
{
|
||||
ui.Close();
|
||||
|
||||
Reference in New Issue
Block a user