public void Update() { if (isUptate) { if (isFadeOut) { time += Time.deltaTime; if (time >= maxTime || !audioManager.IsPlaying()) { isFadeOut = false; time = maxTime; if (clip != null) { audioManager.SetClip(clip); audioManager.play(); } else { audioManager.stop(); } } } else { time -= Time.deltaTime; if (time <= 0) { isUptate = false; time = 0; } } audioManager.SetVolume((maxTime - time) / maxTime); } }
public virtual void OnClick(RaycastHit hit) { //Debug.Log("QIPAWORLD:TouchClickBase.OnClick"); if (isAudio) { audioManager.play(); } }
public virtual void OnClick(RaycastHit hit, Vector3 dis) { //Debug.Log("QIPAWORLD:TouchClickBase.OnClick"); isAttack = true; if (isAudio) { audioManager.play(); } }
public void OnClickIcon() { if (callback != null) { if (isAudio) { audioManager.play(); } callback(this); } }
void ChangeMusic(float f) { //AudioManager.Instance //BgMusicManager.Instance.SetVolume(f); if (f <= 0.00001f) { sliderController.SetValue("musicStatus", 0); } else { sliderController.SetValue("musicStatus", 1); } music.play(); }
public void OnPointerDown(PointerEventData eventData) { audioStatusBase.play(); }