Exemple #1
0
    //Apphandler's sceneloader has the transition thing but isn't in all scenes by default.
    //We're checking if we have reference first. It should ALWAYS be in the scene so we can rely on it here.
    public void LoadNewScene(string sceneName)
    {
        if (appHandler == null)
        {
            appHandler = FindObjectOfType <AppHandler>();
        }

        appHandler.LoadNewScene(sceneName);
    }