Search Unity

How to load ten maps in succession to make a tournament?

Discussion in 'Scripting' started by Jeepster, Jan 17, 2020.

  1. Jeepster

    Jeepster

    Joined:
    Jan 23, 2014
    Posts:
    401
    Hi,

    I've made a map selection menu in my multiplayer game, where the master client can start a match on the selected map. It's very simple :
    Code (CSharp):
    1.         SceneManager.LoadScene(namemap);
    2.  
    and "namemap" is the selected map.

    How do I store ten selected "namemap"'s and when the master client wants to start the tournament, the first map starts, and when everyone is dead the second map starts and so on?

    I can't seem to find any tutorials or examples of how to load maps in succession like this. Any help is Greatly appreciated. Thank you
     
  2. adi7b9

    adi7b9

    Joined:
    Feb 22, 2015
    Posts:
    181
    Code (CSharp):
    1. List<string> nameMaps {get; set;}
    2.  
    3. SceneManager.LoadScene(nameMaps[x]);
    4.  
     
    Jeepster likes this.
  3. Jeepster

    Jeepster

    Joined:
    Jan 23, 2014
    Posts:
    401
    Thanks