public void Reset(int excludeIndex)
    {
        soundsBranch.Reset();
        wordsBranch.Reset();
        synthesisBranch.Reset();
        analysisBranch.Reset();

        switch (excludeIndex)
        {
        case 0:
            soundsBranch.Show();
            break;

        case 1:
            wordsBranch.Show();
            break;

        case 2:
            synthesisBranch.Show();
            break;

        case 3:
            analysisBranch.Show();
            break;
        }
    }
Exemplo n.º 2
0
    /// <summary>
    /// reset the tree for generating another one
    /// </summary>
    private void ResetTree()
    {
        for (int i = 0; i < TreeNode.Nodes.Count; i++)
        {
            Destroy(TreeNode.Nodes[i].GO);
        }
        TreeNode.Reset();

        for (int i = 0; i < TreeBranch.Branches.Count; i++)
        {
            Destroy(TreeBranch.Branches[i].GO);
        }
        TreeBranch.Reset();
    }