Skip to content

Commit 9d84b33

Browse files
committed
Fixed compilation error and cleaned code
1 parent c6f2d3a commit 9d84b33

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

MLAPI/NetworkingManagerComponents/Core/NetworkSceneManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ public static class NetworkSceneManager
1717
internal static readonly HashSet<string> registeredSceneNames = new HashSet<string>();
1818
internal static readonly Dictionary<string, uint> sceneNameToIndex = new Dictionary<string, uint>();
1919
internal static readonly Dictionary<uint, string> sceneIndexToString = new Dictionary<uint, string>();
20+
internal static Dictionary<Guid, SwitchSceneProgress> switchSceneProgresses = new Dictionary<Guid, SwitchSceneProgress>();
2021
private static Scene lastScene;
2122
private static Scene nextScene;
2223
private static bool isSwitching = false;
2324
internal static uint CurrentSceneIndex = 0;
2425
internal static Guid CurrentSceneSwitchProgressGuid = new Guid();
25-
internal static Dictionary<Guid, SwitchSceneProgress> switchSceneProgresses = new Dictionary<Guid, SwitchSceneProgress> ();
2626

2727
internal static void SetCurrentSceneIndex ()
2828
{

MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ internal static NetworkedObject CreateSpawnedObject(int networkedPrefabId, uint
236236
List<NetworkedBehaviour> networkedBehaviours = new List<NetworkedBehaviour>(netObject.GetComponentsInChildren<NetworkedBehaviour>());
237237
for (ushort i = 0; i < networkedBehaviours.Count; i++)
238238
{
239-
dummyNetworkedVars.Add(i, networkedBehaviours[i].getDummyNetworkedVars());
239+
dummyNetworkedVars.Add(i, networkedBehaviours[i].GetDummyNetworkedVars());
240240
}
241241

242242
PendingSpawnObject pso = new PendingSpawnObject()

0 commit comments

Comments
 (0)