mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix smell, call parameter the same as base method
This commit is contained in:
parent
0beba4dd2b
commit
613356a6d0
@ -310,10 +310,10 @@ public void RecalculateRoomPlayerIndices()
|
||||
/// This causes the server to switch scenes and sets the networkSceneName.
|
||||
/// <para>Clients that connect to this server will automatically switch to this scene. This is called autmatically if onlineScene or offlineScene are set, but it can be called from user code to switch scenes again while the game is in progress. This automatically sets clients to be not-ready. The clients must call NetworkClient.Ready() again to participate in the new scene.</para>
|
||||
/// </summary>
|
||||
/// <param name="sceneName"></param>
|
||||
public override void ServerChangeScene(string sceneName)
|
||||
/// <param name="newSceneName"></param>
|
||||
public override void ServerChangeScene(string newSceneName)
|
||||
{
|
||||
if (sceneName == RoomScene)
|
||||
if (newSceneName == RoomScene)
|
||||
{
|
||||
foreach (NetworkRoomPlayer roomPlayer in roomSlots)
|
||||
{
|
||||
@ -337,7 +337,7 @@ public override void ServerChangeScene(string sceneName)
|
||||
allPlayersReady = false;
|
||||
}
|
||||
|
||||
base.ServerChangeScene(sceneName);
|
||||
base.ServerChangeScene(newSceneName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user