Exemplo n.º 1
0
        private void OnPlayPressed()
        {
            if (transitioning)
            {
                return;
            }

            var audioManager = Service.Get <AudioManager>();

            if (audioManager != null)
            {
                audioManager.PlaySound(Constants.GameSounds.UI_GENERIC_BUTTON_PRESSED);
            }

            var playerPrefHelper = PlayerPrefHelper.Instance;
            var playerData       = PlayerData.Instance;

            ScreenAnimator.Play("hide");
            transitioning = true;
            var screenManager = Service.Get <ScreenManager>();

            if (screenManager != null)
            {
                screenManager.FadeIn(() =>
                {
                    Close(true);
                });
            }
        }
Exemplo n.º 2
0
 public void FadeIn()
 {
     //Enable();
     ScreenAnimator.Play("Fade In");
 }
Exemplo n.º 3
0
 public void FadeIn()
 {
     ScreenAnimator.Play("Fade In");
 }
Exemplo n.º 4
0
 public void FadeOut()
 {
     //Enable();
     ScreenAnimator.Play("Fade Out");
 }
Exemplo n.º 5
0
 public void FadeOut()
 {
     ScreenAnimator.Play("Fade Out");
 }