public static BubbleMatrixManager GetInstance(int rows, int columns, BubbleMatrixGeoInfo geoInfo, Difficulty difficulty) { if (_instance == null) { var matrix = new BubbleMatrix(rows, columns); _instance = new BubbleMatrixManager(matrix, geoInfo, difficulty); } return(_instance); }
private BubbleMatrixManager(BubbleMatrix matrix, BubbleMatrixGeoInfo geoInfo, Difficulty difficulty) { _matrix = matrix; _geoInfo = geoInfo; _diffculty = difficulty; }