调整下结算的UI逻辑
This commit is contained in:
parent
ea33e5f010
commit
769f59620d
@ -44,7 +44,8 @@ public class WinUI
|
||||
if (_ROWinUI.activeSelf || _curGameDone)
|
||||
return;
|
||||
if (Main.MapData == null) return;
|
||||
if (Main.MapData.PlayerMap.CheckSelfWin())
|
||||
if (!Main.MapData.CheckIfGameEnd(out var isWin)) return;
|
||||
if (isWin)
|
||||
{
|
||||
_curGameDone = true;
|
||||
var tt = _ROWinUI.transform.Find("Title")?.GetComponent<TextMeshProUGUI>();
|
||||
@ -63,7 +64,6 @@ public class WinUI
|
||||
Main.Instance.GameLogic.ChangeState(GameState.Finished);
|
||||
}
|
||||
else
|
||||
if (Main.MapData.PlayerMap.CheckSelfLose())
|
||||
{
|
||||
_curGameDone = true;
|
||||
var tt = _ROWinUI.transform.Find("Title")?.GetComponent<TextMeshProUGUI>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user