Пример #1
0
    void Update()
    {
        if (hardInput.GetKeyDown("Enter") && startMenu && canStart)
        {
            mainMenuNewBlur        = 250f;
            levelSelectMenuNewBlur = 0f;

            ChangeFocus(1.93f, 0.5f);
            EMMotionManager.Close("MenuStartAction");
            EMMotionManager.Close("MenuStartTitle");
            menuCamera.GetComponent <Animation>().Play("StartMenu_CameraFlyOut");
            startMenu = false;
            AudioManager.instance.Play("MenuEnterKey");
        }

        mainMenuBlur.SetFloat("_BlurSize", Mathf.Lerp(mainMenuBlur.GetFloat("_BlurSize"), mainMenuNewBlur, Time.deltaTime * smooth));
        levelSelectBlur.SetFloat("_BlurSize", Mathf.Lerp(levelSelectBlur.GetFloat("_BlurSize"), levelSelectMenuNewBlur, Time.deltaTime * smooth));
    }
 public void CloseAPI()
 {
     EMMotionManager.Close("HedgehogOpenClose");
 }
Пример #3
0
    // Delay for Close Animation (EM)
    private IEnumerator CloseEMAnimationDelayBySeconds(float time, string name)
    {
        yield return(new WaitForSeconds(time));

        EMMotionManager.Close(name);
    }