Example #1
0
        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");
        }
Example #2
0
 private void OnClickBack()
 {
     MsgWin.Show("Exit?", true, () => {
         Global.Ins.menu.ShowMenu(true);
     });
 }