Ejemplo n.º 1
0
    public void OnLevelWasLoaded(int level)
    {
        Time.timeScale = 1f;
        SceneManager.LoadScene(level);

        Debug.Log("loading");
        if (level == 2)
        {
            Debug.Log("Enable Flying");
            player.EnableJumpOnFinalScene();
        }
    }