public void writeForArray(int[] arrayData, bool _isBlack) { isBlack = _isBlack; // max8 for (int i = 0; i < arrayData.Length; i++) { int idx = i % 8; int idy = i / 8; if (_isBlack) { if (idy == 0) { idy += 7; } if (idy == 1) { idy += 5; } if (idy == 2) { idy += 3; } } if (arrayData[i] > 0) { VectorDol dol = new VectorDol { x = idx, y = idy }; list.Add(dol); } } }
public void setPos(VectorDol copyDaya) { x = copyDaya.x; y = copyDaya.y; }