private void CreateExperimentSection(IExperimentSection section)
        {
            GameObject sectionObject = Instantiate(ExperimentSectionPrefab);

            if (sectionObject == null)
            {
                return;
            }

            sectionObject.transform.SetParent(ExperimentSectionTransform, false);

            SEP_ExperimentSection experiment = sectionObject.GetComponent <SEP_ExperimentSection>();

            if (experiment == null)
            {
                return;
            }

            experiment.setExperiment(section, this);

            if (Minimize != null)
            {
                experiment.toggleVisibility(Minimize.isOn);
            }
            else
            {
                experiment.toggleVisibility(true);
            }

            experiments.Add(experiment);
        }
        public void RemoveExperimentSection(SEP_ExperimentSection section)
        {
            if (section == null)
            {
                return;
            }

            if (experiments.Contains(section))
            {
                experiments.Remove(section);
            }
        }
        public void setExperimentVisibility(bool on)
        {
            for (int i = experiments.Count - 1; i >= 0; i--)
            {
                SEP_ExperimentSection experiment = experiments[i];

                if (experiment == null)
                {
                    return;
                }

                experiment.toggleVisibility(on);
            }
        }
        private bool anyPaused()
        {
            bool b = false;

            for (int i = experiments.Count - 1; i >= 0; i--)
            {
                SEP_ExperimentSection section = experiments[i];

                if (section == null)
                {
                    continue;
                }

                if (!section.experimentRunning)
                {
                    b = true;
                    break;
                }
            }

            return(b);
        }