private void Update()
 {
     if (isLoadingEnd && InputEx.IsAnyKeyPressedThisFrame())
     {
         OnAnyKeyPress();
     }
 }
Beispiel #2
0
 private void Update()
 {
     if (InputEx.IsAnyKeyPressedThisFrame())
     {
         enabled = false;
         MenuManager.HideTopMenu();
     }
 }
Beispiel #3
0
    private void Update()
    {
        if (timePassed < timeToShowAnyKeyText)
        {
            timePassed += Time.deltaTime;
            if (timePassed >= timeToShowAnyKeyText)
            {
                LeanTweenEx.ChangeAlpha(anyKeyText, 1.0f, 0.2f)
                .setOnComplete(() => {
                    anyKeyTextAlphaLerp.enabled = anyKeyTextSizeLerp.enabled = true;
                });
            }
        }

        if (timePassed >= timeToCanSkip && InputEx.IsAnyKeyPressedThisFrame())
        {
            OnAnyKeyPress();
        }
    }