示例#1
0
    /// <summary>
    /// Resetting the entire grid be deleting existing grind and creating a new one (Testing purpouse only)
    /// </summary>
    public void Reset_ActiveGrid()
    {
        for (int i = 0; i < holder.transform.childCount; i++)
        {
            Destroy(holder.transform.GetChild(i).gameObject);
        }

        elementsList.Clear();
        totalActiveElements = 0;
        checkForPattern     = false;
        text.SetActive(false);
        gridCreator.ResetGridCurrentData();
        patternDetector.ResetActiveElementsList();
        Utils.ClearLogConsole();

        gridCreator.CreateButtoGrid();
    }