mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Simplify by using property
This commit is contained in:
parent
559c1f155a
commit
fc203dd89e
@ -11,15 +11,10 @@ public static class ClientScene
|
||||
{
|
||||
static bool s_IsSpawnFinished;
|
||||
|
||||
internal static void SetNotReady()
|
||||
{
|
||||
ready = false;
|
||||
}
|
||||
|
||||
static List<uint> s_PendingOwnerNetIds = new List<uint>();
|
||||
|
||||
public static NetworkIdentity localPlayer { get; private set; }
|
||||
public static bool ready { get; private set; }
|
||||
public static bool ready { get; internal set; }
|
||||
public static NetworkConnection readyConnection { get; private set; }
|
||||
|
||||
public static Dictionary<Guid, GameObject> prefabs = new Dictionary<Guid, GameObject>();
|
||||
|
@ -609,7 +609,7 @@ internal void OnClientNotReadyMessageInternal(NetworkMessage netMsg)
|
||||
{
|
||||
if (LogFilter.Debug) { Debug.Log("NetworkManager:OnClientNotReadyMessageInternal"); }
|
||||
|
||||
ClientScene.SetNotReady();
|
||||
ClientScene.ready = false;
|
||||
OnClientNotReady(netMsg.conn);
|
||||
|
||||
// NOTE: s_ClientReadyConnection is not set here! don't want OnClientConnect to be invoked again after scene changes.
|
||||
|
Loading…
Reference in New Issue
Block a user