mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Renamed script to AdditiveNetworkManager
This commit is contained in:
parent
2c0fa42568
commit
297b671766
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Mirror.Examples.Additive
|
||||
{
|
||||
public class NetworkManagerExt : NetworkManager
|
||||
public class AdditiveNetworkManager : NetworkManager
|
||||
{
|
||||
[Scene]
|
||||
[Tooltip("Add all sub-scenes to this list")]
|
||||
@ -17,7 +17,11 @@ public override void OnStartServer()
|
||||
|
||||
// load all subscenes on the server only
|
||||
foreach (string sceneName in subScenes)
|
||||
StartCoroutine(LoadScene(sceneName));
|
||||
{
|
||||
SceneManager.LoadSceneAsync(sceneName, LoadSceneMode.Additive);
|
||||
Debug.LogFormat("Loaded {0}", sceneName);
|
||||
}
|
||||
//StartCoroutine(LoadScene(sceneName));
|
||||
}
|
||||
|
||||
IEnumerator LoadScene(string sceneName)
|
Loading…
Reference in New Issue
Block a user