/// <summary> /// Sets the active section. /// </summary> public void SetActiveSection(int sectionId) { this.DisableAllSections(); this.activeSection = this.levelSections[sectionId]; this.activeSectionId = sectionId; this.activeSection.ActivateSection(); }
// ---------------------------------------------------------------------------------------------------- #endregion #region Section Methods // ---------------------------------------------------------------------------------------------------- /// <summary> /// Sets the active section. /// </summary> public void SetActiveSection(LevelSection section) { this.SetActiveSection(section.SectionID); }