void CheckLevelComplete() { foreach (var unit in _unitList) { if (unit.UnitType == EUnitType.BOX) { if (false == _lv.IsTarget((ushort)unit.Tile.x, (ushort)unit.Tile.y)) { return; } } } MsgWin.Show("Congratulations!", false, () => { //通知关卡完成 GameEvent.Ins.onLevelComplete?.Invoke(); }).SetLabel("Next"); }
private void OnClickBack() { MsgWin.Show("Exit?", true, () => { Global.Ins.menu.ShowMenu(true); }); }