Ejemplo n.º 1
0
    public void MapInformation(S.MapInformation p)
    {
        ClearObjects();

        if (CurrentScene != null && CurrentScene.gameObject.scene.name == p.SceneName)
        {
            CurrentScene.LoadMap(p.FileName);
        }
        else
        {
            FindObjectOfType <LoadScreenManager>().LoadScene(p.SceneName, p.FileName);
        }
    }
Ejemplo n.º 2
0
    public void MapInformation(S.MapInformation p)
    {
        foreach (var ob in ObjectList.ToArray())
        {
            Destroy(ob.Value.gameObject);
        }
        ObjectList.Clear();

        if (CurrentScene != null && CurrentScene.gameObject.scene.name == p.SceneName)
        {
            CurrentScene.LoadMap(p.FileName);
        }
        else
        {
            FindObjectOfType <LoadScreenManager>().LoadScene(p.SceneName, p.FileName);
        }
    }
Ejemplo n.º 3
0
 public static void MapInformation(S.MapInformation p)
 {
     gameManager.MapInformation(p);
 }
Ejemplo n.º 4
0
 public void MapInformation(S.MapInformation p)
 {
     FindObjectOfType <LoadScreenManager>().LoadScene(p.FileName);
     //SceneManager.LoadSceneAsync(p.FileName, LoadSceneMode.Additive);
 }