示例#1
0
        private void SetObjectsData(List <CellData> mainObjects, List <CellData> overlayObjects, GameMode gMode)
        {
            List <CellData> cdl = mainObjects;

            if (cdl != null && cdl.Count > 0)
            {
                cdl.ForEach((c) =>
                {
                    if (ok(c.Row, c.Column))
                    {
                        Rows[c.Row][c.Column].SetMainObject(goSet.GetMainObject(c.ID), BubleRadius, gMode);
                    }
                });
            }

            cdl = overlayObjects;

            if (cdl != null && cdl.Count > 0)
            {
                cdl.ForEach((c) =>
                {
                    if (ok(c.Row, c.Column))
                    {
                        Rows[c.Row][c.Column].SetOverlay(goSet.GetOverlayObject(c.ID));
                    }
                });
            }
        }