protected void _StartAlgo(ILeeAlgorithm algo) { _currentAlgo = algo; _board.gameObject.Hide(); _PreprocBoardItems(); algo.Tracing(this); }
public void ResetController() { for (int i = 0; i < _boards.Count; ++i) { Destroy(_boards[i].gameObject); } _boards.Clear(); _currentBoardIndx = -1; _currentItem = -1; _currentEdge = -1; _currentAlgo = null; _board.gameObject.Show(); }
public void SetActive(bool __active) { if (!__active) { // _Revert(); ResetController(); _uiPanel.Hide(); _currentAlgo = null; } else { _uiPanel.Show(); } _active = __active; }