|
2 | 2 | using System.Collections; |
3 | 3 | using System.Collections.Generic; |
4 | 4 | using System.IO; |
5 | | -using System.Linq; |
6 | 5 | using UnityEngine; |
7 | 6 | using UnityEngine.Networking; |
8 | | -using UnityEngine.SceneManagement; |
9 | 7 |
|
10 | 8 | namespace MLAPI |
11 | 9 | { |
@@ -42,8 +40,6 @@ internal bool isHost |
42 | 40 | private Dictionary<ushort, int> messageHandlerCounter; |
43 | 41 | private Dictionary<ushort, Stack<int>> releasedMessageHandlerCounters; |
44 | 42 | internal int serverClientId; |
45 | | - public int PlaySceneIndex; |
46 | | - public int MenuSceneIndex; |
47 | 43 | internal Dictionary<uint, NetworkedObject> spawnedObjects; |
48 | 44 | public Dictionary<uint, NetworkedObject> SpawnedObjects |
49 | 45 | { |
@@ -263,7 +259,6 @@ private ConnectionConfig Init(NetworkingConfiguration netConfig) |
263 | 259 |
|
264 | 260 | public void StartServer(NetworkingConfiguration netConfig) |
265 | 261 | { |
266 | | - SceneManager.LoadScene(PlaySceneIndex); |
267 | 262 | ConnectionConfig cConfig = Init(netConfig); |
268 | 263 | if (NetworkConfig.ConnectionApproval) |
269 | 264 | { |
@@ -293,7 +288,6 @@ public void StartClient(NetworkingConfiguration netConfig) |
293 | 288 |
|
294 | 289 | public void StartHost(NetworkingConfiguration netConfig) |
295 | 290 | { |
296 | | - SceneManager.LoadScene(PlaySceneIndex); |
297 | 291 | ConnectionConfig cConfig = Init(netConfig); |
298 | 292 | if (NetworkConfig.ConnectionApproval) |
299 | 293 | { |
|
0 commit comments