Beispiel #1
0
    public static IEnumerator LoadLocation(Location location)
    {
        if (loadingLevel != null && !loadingLevel.isDone)
        {
            yield break;
        }
        Location     = location;
        loadingLevel = SceneManager.LoadSceneAsync("Local", LoadSceneMode.Single);

        while (!loadingLevel.isDone)
        {
            yield return(null);
        }

        NodeGrid.CreateGrid(Location);
        LocationManager.LoadLocation(Location);
        ObjectManager.TakeTurn();
    }
 void OnCheckpointLoaded()
 {
     nodeGrid.CreateGrid();
 }