public void Set(int type) { switch ((int)type) { case 0: { shape = new byte[4, 1]; size = new Vector2(4, 1); shape[0, 0] = shape[1, 0] = shape[2, 0] = shape[3, 0] = 1; break; } case 1: { shape = new byte[3, 2]; size = new Vector2(3, 2); shape[0, 0] = shape[0, 1] = shape[1, 1] = shape[2, 1] = 1; break; } case 2: { shape = new byte[3, 2]; size = new Vector2(3, 2); shape[0, 1] = shape[1, 1] = shape[2, 1] = shape[2, 0] = 1; break; } case 3: { shape = new byte[2, 2]; size = new Vector2(2, 2); shape[0, 0] = shape[1, 0] = shape[0, 1] = shape[1, 1] = 1; break; } case 4: { shape = new byte[3, 2]; size = new Vector2(3, 2); shape[1, 0] = shape[2, 0] = shape[0, 1] = shape[1, 1] = 1; break; } case 5: { shape = new byte[3, 2]; size = new Vector2(3, 2); shape[1, 0] = shape[0, 1] = shape[1, 1] = shape[2, 1] = 1; break; } case 6: { shape = new byte[3, 2]; size = new Vector2(3, 2); shape[0, 0] = shape[1, 0] = shape[1, 1] = shape[2, 1] = 1; break; } } color = Tetrimino.GetColor(type); }