Esempio n. 1
0
        protected void _StartAlgo(ILeeAlgorithm algo)
        {
            _currentAlgo = algo;
            _board.gameObject.Hide();

            _PreprocBoardItems();

            algo.Tracing(this);
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        public void SetActive(bool __active)
        {
            if (!__active)
            {
                //	_Revert();
                ResetController();
                _uiPanel.Hide();
                _currentAlgo = null;
            }
            else
            {
                _uiPanel.Show();
            }

            _active = __active;
        }