parent
0d63e5482f
commit
d106f7eebb
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
|
@ -135,6 +136,21 @@ namespace ZC
|
||||||
uiBase.OnClose();
|
uiBase.OnClose();
|
||||||
// TODO:
|
// TODO:
|
||||||
_uis.Pop();
|
_uis.Pop();
|
||||||
|
var array = _uis.ToList();
|
||||||
|
foreach (var ui in array)
|
||||||
|
{
|
||||||
|
if (ui == uiBase)
|
||||||
|
{
|
||||||
|
array.Remove(ui);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_uis.Clear();
|
||||||
|
foreach (var ui in array)
|
||||||
|
{
|
||||||
|
_uis.Push(ui);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue