Esempio n. 1
0
    private void Update()
    {
        globalUpdateSystem.OnUpdate(Time.deltaTime);

        // Update UI
        for (int i = 0; i < AudioControls.Length; i++)
        {
            EazySoundDemoAudioControls audioControl = AudioControls[i];
            if (audioControl.audio != null && audioControl.audio.IsPlaying)
            {
                if (audioControl.pauseButton != null)
                {
                    audioControl.playButton.interactable  = false;
                    audioControl.pauseButton.interactable = true;
                    audioControl.stopButton.interactable  = true;
                    audioControl.pausedStatusTxt.enabled  = false;
                }
            }
            else if (audioControl.audio != null && audioControl.audio.Paused)
            {
                if (audioControl.pauseButton != null)
                {
                    audioControl.playButton.interactable  = true;
                    audioControl.pauseButton.interactable = false;
                    audioControl.stopButton.interactable  = false;
                    audioControl.pausedStatusTxt.enabled  = true;
                }
            }
            else
            {
                if (audioControl.pauseButton != null)
                {
                    audioControl.playButton.interactable  = true;
                    audioControl.pauseButton.interactable = false;
                    audioControl.stopButton.interactable  = false;
                    audioControl.pausedStatusTxt.enabled  = false;
                }
            }
        }
    }
Esempio n. 2
0
 private void Update()
 {
     updateSystem.OnUpdate(Time.deltaTime);
 }
Esempio n. 3
0
 private void Update()
 {
     globalUpdateSystem.OnUpdate(Time.deltaTime);
 }