Пример #1
0
    public void Resume()
    {
        if (!isPaused)
        {
            return;
        }

        isPaused = false;

        overlay.GetComponent <Overlay>().fadeIn = false;

        GetComponent <Animator>().SetTrigger("FadeOut");
        overlay.GetComponent <Animator>().SetTrigger("FadeOut");

        timekeeper.speedupTimescale();

        blade.SetActive(true);

        Input.backButtonLeavesApp = false;
    }
Пример #2
0
    public void Resume()
    {
        GetComponent <Animator>().SetTrigger("FadeOut");
        overlay.GetComponent <Animator>().SetTrigger("FadeOut");

        blade.SetActive(true);
        hiveScript.SetActive(true);
        // iTween.Stop(gameObject);
        // iTween.ValueTo(gameObject, iTween.Hash(
        //     "from", 0.0f,
        //     "to", 1.0f,
        //     "time", 0.5f,
        //     "ignoretimescale", true,
        //     "onupdatetarget", gameObject,
        //     "onupdate", "tweenOnUpdateCallBack",
        //     "easetype", iTween.EaseType.easeOutQuad
        //     )
        // );
        levelManager.loadLevel(Global.currentGameplayLevel);

        timekeeper.speedupTimescale();

        Input.backButtonLeavesApp = false;
    }