void Init() { qipan = new qPos[81]; for (int i = 0; i < 81; i++) { int column = i % 9; int row = i / 9; qPos p = new qPos(column, row); Debug.Log("init:" + row + "-" + column); } }
protected void Init() { if (qipan == null) { qipan = new qPos[81]; for (int i = 0; i < 81; i++) { int column = i % 9; int row = i / 9; qPos p = new qPos(column, row); } } for (int i = 0; i < qipan.Length; i++) { qipan[i].r = 0; } _whiteCount = _blackCount = 0; }