public void GoToNewScene() { frame.SetActive(true); TapToExit.SetDefaultValue(); TapToSettings.SetDefaultValue(); LoadToPlayingScene.progress(number); }
private void Start() { setting = tools.GetComponent <TapToSettings>(); clip = GetComponent <AudioSource>(); maxVolume = clip.volume; saveVolume = maxVolume * PlayerPrefs.GetFloat("Volume"); isInicialised = true; }
private void Start() { setting = tools.GetComponent <TapToSettings>(); for (int i = 0; i < size; i++) { anim[i] = buttons[i].GetComponent <Animation>(); } }
IEnumerator ActivateVol() { while (!TapToExit.IsInicialised || !TapToSettings.IsInicialised) { yield return(null); } MessageSystemMainScreen.ActivateVolume(); TapToSettings.ActivateVolume(); TapToExit.ActivateVolume(); }
private void OnMouseUp() { currentVolume = (rec.transform.localPosition.x - min) / (max - min); Conecting.Volume = currentVolume; TapToExit.SetupVolume(currentVolume); TapToSettings.SetupVolume(currentVolume); MessageSystemMainScreen.SetupVolume(currentVolume); PlayerPrefs.SetFloat("Volume", currentVolume); PlayClip(); isPress = 0; }
IEnumerator DisactiveVol() { while (!TapToExit.IsInicialised || !TapToSettings.IsInicialised) { yield return(null); } MessageSystemMainScreen.DisactiveVolume(); TapToExit.DisactiveVolume(); TapToSettings.DisactiveVolume(); check.SetActive(false); line.SetActive(false); }