// グリッドポジションからダイスを削除 public void removeDice(GridPosition p_grid) { int l_x = (p_grid.X - _G_OFSET) / _DICE_SIZE; int l_y = (p_grid.Y - _G_OFSET) / _DICE_SIZE; this._diceList[l_x].RemoveAt(l_y); }
// コンストラクタ public DiceInfo (GameObject p_obj, GridPosition p_pos) { this._obj = p_obj; this._pos = p_pos; }
// ダイス消えるイベント protected void onDestroyDice(GridPosition p_pos) {}
// グリッドのY配列を取得 public GridPosition[] getGridArrayY() { GridPosition[] l_grids = new GridPosition[_DICE_CNT_Y]; for(int i=0;i<_DICE_CNT_Y;i++) { l_grids[i] = this._gridList[i, 0]; } return l_grids; }
// コンストラクタ public DiceInfo(GameObject p_obj, GridPosition p_pos) { this._obj = p_obj; this._pos = p_pos; }