private void OnSectionChanged(ServiceSections.SECTION selected) { if (selected == ServiceSections.SECTION.INTRO) { quitButtonCanvas.DOFade(0f, .3f); quitButtonCanvas.interactable = quitButtonCanvas.blocksRaycasts = false; } else { quitButtonCanvas.DOFade(1f, .3f); quitButtonCanvas.interactable = quitButtonCanvas.blocksRaycasts = true; } }
private void _sectionChanged(ServiceSections.SECTION selected) { switch (selected) { case ServiceSections.SECTION.INTRO: this._switchSection(introPrefab); break; case ServiceSections.SECTION.VISUALIZATION: this._switchSection(visualizationPrefab); break; case ServiceSections.SECTION.CUSTOMIZATION: this._switchSection(customizationPrefab); break; default: this._switchSection(null); break; } }