From aa75387d6075d3eea5b37cab1cbd9f32b690008a Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Sat, 6 Apr 2019 07:45:02 -0500 Subject: [PATCH] refactor: made fields readonly --- Assets/Mirror/Editor/NetworkIdentityEditor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Mirror/Editor/NetworkIdentityEditor.cs b/Assets/Mirror/Editor/NetworkIdentityEditor.cs index 9fde701c5..f603b3584 100644 --- a/Assets/Mirror/Editor/NetworkIdentityEditor.cs +++ b/Assets/Mirror/Editor/NetworkIdentityEditor.cs @@ -11,9 +11,9 @@ public class NetworkIdentityEditor : Editor SerializedProperty serverOnlyProperty; SerializedProperty localPlayerAuthorityProperty; - GUIContent serverOnlyLabel = new GUIContent("Server Only", "True if the object should only exist on the server."); - GUIContent localPlayerAuthorityLabel = new GUIContent("Local Player Authority", "True if this object will be controlled by a player on a client."); - GUIContent spawnLabel = new GUIContent("Spawn Object", "This causes an unspawned server object to be spawned on clients"); + readonly GUIContent serverOnlyLabel = new GUIContent("Server Only", "True if the object should only exist on the server."); + readonly GUIContent localPlayerAuthorityLabel = new GUIContent("Local Player Authority", "True if this object will be controlled by a player on a client."); + readonly GUIContent spawnLabel = new GUIContent("Spawn Object", "This causes an unspawned server object to be spawned on clients"); NetworkIdentity networkIdentity; bool initialized;