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; } } } }
private void Update() { updateSystem.OnUpdate(Time.deltaTime); }
private void Update() { globalUpdateSystem.OnUpdate(Time.deltaTime); }