IEnumerator ActivateVol() { while (!TapToExit.IsInicialised || !TapToSettings.IsInicialised) { yield return(null); } MessageSystemMainScreen.ActivateVolume(); TapToSettings.ActivateVolume(); TapToExit.ActivateVolume(); }
IEnumerator Open() { if (TapToSettings.isOpenSettings) { yield return(StartCoroutine(setting.Close())); manager.GetComponent <BoxCollider2D>().enabled = true; } MessageSystemMainScreen.OpenExitPanel(); PlayClip(); }
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); }
private void OnMouseUp() { transform.localScale = new Vector3(1, 1, 1); MessageSystemMainScreen.CloseExitPanel(); TapToExit.PlayClip(); }