public void Clear() { _hand = null; _gridLayoutGroup.Clear(); for (int i = 0; i < _instantiatedTileViews.Count; i++) { _tileViewPoolManager.Recycle(_instantiatedTileViews[i]); } _instantiatedTileViews.Clear(); }
public void Clear() { for (int i = 0; i < _currentHandViews.Count; i++) { _currentHandViews[i].Clear(); _handViewPoolManager.Recycle(_currentHandViews[i]); } _hands.Clear(); _currentHandViews.Clear(); _handGridLayoutGroup.Clear(); if (_indicatorTileView != null) { _tileViewPoolManager.Recycle(_indicatorTileView); } _indicatorTileView = null; }