refactor: made fields readonly

This commit is contained in:
Paul Pacheco 2019-04-06 07:45:02 -05:00
parent a302c180d3
commit aa75387d60

View File

@ -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;