Beispiel #1
0
        /// <summary>
        /// Sets the active section.
        /// </summary>
        public void SetActiveSection(int sectionId)
        {
            this.DisableAllSections();

            this.activeSection   = this.levelSections[sectionId];
            this.activeSectionId = sectionId;

            this.activeSection.ActivateSection();
        }
Beispiel #2
0
        // ----------------------------------------------------------------------------------------------------
        #endregion

        #region Section Methods
        // ----------------------------------------------------------------------------------------------------
        /// <summary>
        /// Sets the active section.
        /// </summary>
        public void SetActiveSection(LevelSection section)
        {
            this.SetActiveSection(section.SectionID);
        }