Exemplo n.º 1
0
        public void UpdateUI(EditorMode mode)
        {
            switch (mode)
            {
            case EditorMode.Compose:


                DOSliderToButton(0, NRSettings.config.leftColor);

                uIMetadata.StopAllCoroutines();
                StartCoroutine(uIMetadata.FadeOut());

                uITiming.StopAllCoroutines();
                StartCoroutine(uITiming.FadeOut());

                uISettings.Deactivate();


                break;

            case EditorMode.Metadata:
                uIMetadata.gameObject.SetActive(true);
                DOSliderToButton(1, NRSettings.config.rightColor);

                uIMetadata.StopAllCoroutines();
                StartCoroutine(uIMetadata.FadeIn());

                uITiming.StopAllCoroutines();
                StartCoroutine(uITiming.FadeOut());

                uISettings.Deactivate();



                break;

            case EditorMode.Timing:
                uITiming.gameObject.SetActive(true);

                DOSliderToButton(2, NRSettings.config.leftColor);

                uITiming.StopAllCoroutines();
                StartCoroutine(uITiming.FadeIn());

                uIMetadata.StopAllCoroutines();
                StartCoroutine(uIMetadata.FadeOut());

                uISettings.Deactivate();

                break;

            case EditorMode.Settings:

                DOSliderToButton(3, Color.white);

                uIMetadata.StopAllCoroutines();
                StartCoroutine(uIMetadata.FadeOut());

                uITiming.StopAllCoroutines();
                StartCoroutine(uITiming.FadeOut());

                uISettings.Activate();



                break;
            }
        }