Ejemplo n.º 1
0
 public void GoToNewScene()
 {
     frame.SetActive(true);
     TapToExit.SetDefaultValue();
     TapToSettings.SetDefaultValue();
     LoadToPlayingScene.progress(number);
 }
Ejemplo n.º 2
0
 private void Start()
 {
     setting       = tools.GetComponent <TapToSettings>();
     clip          = GetComponent <AudioSource>();
     maxVolume     = clip.volume;
     saveVolume    = maxVolume * PlayerPrefs.GetFloat("Volume");
     isInicialised = true;
 }
Ejemplo n.º 3
0
 private void Start()
 {
     setting = tools.GetComponent <TapToSettings>();
     for (int i = 0; i < size; i++)
     {
         anim[i] = buttons[i].GetComponent <Animation>();
     }
 }
Ejemplo n.º 4
0
 IEnumerator ActivateVol()
 {
     while (!TapToExit.IsInicialised || !TapToSettings.IsInicialised)
     {
         yield return(null);
     }
     MessageSystemMainScreen.ActivateVolume();
     TapToSettings.ActivateVolume();
     TapToExit.ActivateVolume();
 }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 6
0
    IEnumerator DisactiveVol()
    {
        while (!TapToExit.IsInicialised || !TapToSettings.IsInicialised)
        {
            yield return(null);
        }

        MessageSystemMainScreen.DisactiveVolume();
        TapToExit.DisactiveVolume();
        TapToSettings.DisactiveVolume();
        check.SetActive(false);
        line.SetActive(false);
    }