mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
moving where CallOnClientEnterRoom is called (#1922)
This commit is contained in:
parent
fc48e0ecf9
commit
71bf792db5
@ -221,7 +221,7 @@ public void CheckReadyToBegin()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CallOnClientEnterRoom()
|
internal void CallOnClientEnterRoom()
|
||||||
{
|
{
|
||||||
OnRoomClientEnter();
|
OnRoomClientEnter();
|
||||||
foreach (NetworkRoomPlayer player in roomSlots)
|
foreach (NetworkRoomPlayer player in roomSlots)
|
||||||
@ -465,7 +465,6 @@ public override void OnStartClient()
|
|||||||
public override void OnClientConnect(NetworkConnection conn)
|
public override void OnClientConnect(NetworkConnection conn)
|
||||||
{
|
{
|
||||||
OnRoomClientConnect(conn);
|
OnRoomClientConnect(conn);
|
||||||
CallOnClientEnterRoom();
|
|
||||||
base.OnClientConnect(conn);
|
base.OnClientConnect(conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ public void Start()
|
|||||||
room.RecalculateRoomPlayerIndices();
|
room.RecalculateRoomPlayerIndices();
|
||||||
|
|
||||||
if (NetworkClient.active)
|
if (NetworkClient.active)
|
||||||
OnClientEnterRoom();
|
room.CallOnClientEnterRoom();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
logger.LogError("RoomPlayer could not find a NetworkRoomManager. The RoomPlayer requires a NetworkRoomManager object to function. Make sure that there is one in the scene.");
|
logger.LogError("RoomPlayer could not find a NetworkRoomManager. The RoomPlayer requires a NetworkRoomManager object to function. Make sure that there is one in the scene.");
|
||||||
|
Loading…
Reference in New Issue
Block a user