void Awake()
    {
        //Init
        cvsMenu.alpha = 0f;

        //Hide all canvases
        Fader.Canvas_InstantTransparent(GetCanvasBasedOnState(MenuStates.MAIN));
        Fader.Canvas_InstantTransparent(GetCanvasBasedOnState(MenuStates.CREDITS));
        Fader.Canvas_InstantTransparent(GetCanvasBasedOnState(MenuStates.SETTINGS));
    }
Beispiel #2
0
 public void QuitConfirm(bool b)
 {
     if (b)
     {
         Application.Quit();
     }
     else
     {
         Fader.Canvas_InstantTransparent(quitConfirmMenu);
         Fader.Canvas_InstantOpaque(pauseMenu);
     }
 }
Beispiel #3
0
 public void InstantFadeOut()
 {
     Fader.Canvas_InstantTransparent(cvsGrp);
 }
Beispiel #4
0
 void Awake()
 {
     Fader.Canvas_InstantTransparent(pauseMenu);
     Fader.Canvas_InstantTransparent(quitConfirmMenu);
 }
Beispiel #5
0
 public void ToQuitConfirm()
 {
     Fader.Canvas_InstantTransparent(pauseMenu);
     Fader.Canvas_InstantOpaque(quitConfirmMenu);
 }
Beispiel #6
0
 void UnPause()
 {
     Time.timeScale = 1f;
     Fader.Canvas_InstantTransparent(pauseMenu);
 }