From 605c4d471cfd60d4c0cb33b703cfa49179717340 Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 26 Feb 2019 08:57:12 +0100 Subject: [PATCH] rename m_ClientId to clientId --- Assets/Mirror/Runtime/NetworkClient.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkClient.cs b/Assets/Mirror/Runtime/NetworkClient.cs index 8abda9507..31c30d095 100644 --- a/Assets/Mirror/Runtime/NetworkClient.cs +++ b/Assets/Mirror/Runtime/NetworkClient.cs @@ -9,7 +9,7 @@ public class NetworkClient // the client (can be a regular NetworkClient or a LocalClient) public static NetworkClient singleton; - int m_ClientId = -1; + int clientId = -1; public readonly Dictionary handlers = new Dictionary(); @@ -63,7 +63,7 @@ public void Connect(string serverIp) NetworkManager.singleton.transport.ClientConnect(serverIp); // setup all the handlers - m_Connection = new NetworkConnection(this.serverIp, m_ClientId, 0); + m_Connection = new NetworkConnection(this.serverIp, clientId, 0); m_Connection.SetHandlers(handlers); } @@ -119,7 +119,7 @@ void PrepareForConnect() { active = true; RegisterSystemHandlers(false); - m_ClientId = 0; + clientId = 0; NetworkManager.singleton.transport.enabled = true; InitializeTransportHandlers(); } @@ -133,7 +133,7 @@ public virtual void Disconnect() m_Connection.Disconnect(); m_Connection.Dispose(); m_Connection = null; - m_ClientId = -1; + clientId = -1; RemoveTransportHandlers(); } } @@ -164,15 +164,15 @@ public bool Send(short msgType, MessageBase msg) public void Shutdown() { - if (LogFilter.Debug) Debug.Log("Shutting down client " + m_ClientId); - m_ClientId = -1; + if (LogFilter.Debug) Debug.Log("Shutting down client " + clientId); + clientId = -1; singleton = null; active = false; } internal virtual void Update() { - if (m_ClientId == -1) + if (clientId == -1) { return; }