示例#1
0
 public void InitFigure()
 {
     _figure = (Figure) Activator.CreateInstance(_figures[_rand.Next(_figures.Length)]);
     _figure.position.x = (_width / 2) - (_figure.FigureWidht() / 2);
     _figure.color = _rand.Next(14) + 1;
 }