public Figure makeNewFigure(GameForm form) { Figure currentFigureObj = new Figure(); Point tempRotationPoint = new Point(); g = form; rand = new Random(); int type = rand.Next(1, 8); if (firstTime) { nextFigureObj = new Figure(); currentFigureObj.figure = getRandomFIgure(type); currentFigureObj.rotatePoint = rotatePoint; firstTime = !firstTime; } else { currentFigureObj = nextFigureObj.DeepCopy(); } nextFigureObj.figure = getRandomFIgure(type); nextFigureObj.rotatePoint = rotatePoint; setNextFigure(g.nextFigureMasiv, nextFigureObj.figure); setFigureInArray(currentFigureObj.figure); currentFigureObj.g = form; return(currentFigureObj); }