private void Select(int i)
        {
            s_Selected = demoParticles.items[i];
            m_Instance = null;
            foreach (var otherEffect in demoParticles.items)
            {
                if ((otherEffect != s_Selected) && (otherEffect.mode == Mode.Activate))
                {
                    otherEffect.transform.gameObject.SetActive(false);
                }
            }
            if (s_Selected.mode == Mode.Activate)
            {
                s_Selected.transform.gameObject.SetActive(true);
            }
            // m_ParticleMultiplier = s_Selected.transform.GetComponent<ParticleSystemMultiplier>();
            multiply = 1;
            if (clearOnChange)
            {
                while (m_CurrentParticleList.Count > 0)
                {
                    Destroy(m_CurrentParticleList[0].gameObject);
                    m_CurrentParticleList.RemoveAt(0);
                }
            }

            instructionText.text = s_Selected.instructionText;
            titleText.text       = s_Selected.transform.name;
        }
    public void Select(int i)
    {
        s_Selected = demoParticles.items[i];
        m_Instance = null;
        foreach (var otherEffect in demoParticles.items)
        {
            if ((otherEffect != s_Selected) && (otherEffect.mode == Mode.Activate))
            {
                otherEffect.transform.gameObject.SetActive(false);
            }
        }
        if (s_Selected.mode == Mode.Activate)
        {
            s_Selected.transform.gameObject.SetActive(true);
        }
        m_ParticleMultiplier = s_Selected.transform.GetComponent<ParticleSystemMultiplier>();
        multiply = 1;
        if (clearOnChange)
        {
            while (m_CurrentParticleList.Count > 0)
            {
                Destroy(m_CurrentParticleList[0].gameObject);
                m_CurrentParticleList.RemoveAt(0);
            }
        }

        //titleText.text = s_Selected.transform.name;
    }
        private void Select(int i)
        {
            selected = demoParticles.items[i];
            instance = null;
            foreach (var otherEffect in demoParticles.items)
            {
                if ((otherEffect != selected) && (otherEffect.mode == Mode.Activate))
                {
                    otherEffect.transform.gameObject.SetActive(false);
                }
            }
            if (selected.mode == Mode.Activate)
            {
                selected.transform.gameObject.SetActive(true);
            }
            particleMultiplier = selected.transform.GetComponent<ParticleSystemMultiplier>();
            multiply = 1;
            if (clearOnChange)
            {
                while (currentParticleList.Count > 0)
                {
                    Destroy(currentParticleList[0].gameObject);
                    currentParticleList.RemoveAt(0);
                }
            }

            interactionGuiText.text = selected.instructionText;
            titleGuiText.text = selected.transform.name;
        }