예제 #1
0
    private BaseCell OnSearchStart(int startCellId)
    {
        m_SearchState = SearchState.Searching;

        m_CellsSearched.Clear();
        m_CellsToSearch.Clear();
        m_CellsToSearchBackup.Clear();
        m_Path.Clear();

        BaseCell searchingCell = CellManager.Instance.GetCellByID(startCellId); // Cell To Search Right Now

        if (searchingCell != null)
        {
            searchingCell.SetParent(-1);
            m_CellsToSearch.Add(searchingCell);
        }

        return(searchingCell);
    }