Example #1
0
    private static void PrepareNewScene()
    {
        TimeScale.ChangeImmediate(1.0f);
        ImageController.SetSaturation(1.0f);
        Animator animator = v.loadingElement.GetComponent <Animator>();

        animator.SetTrigger(v.levelLoadEndName);
        float time = Utils.Animation.GetStateLength(animator, v.levelLoadEndName);

        Coroutine.Delay(time, () => {
            GameController.inputEnabled = true;
            GameController.loadingScene = false;
            Debug.Log("Scene loading done");
        });
    }