Fixed unity events not working

This commit is contained in:
Derek S 2021-05-18 12:36:26 -05:00
parent b880820cfa
commit 5f0b40deff
2 changed files with 5 additions and 1 deletions

View file

@ -525,6 +525,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
clientToServerTransport: {fileID: 978065553}
serverIP: 127.0.0.1
serverPort: 7777
endpointServerPort: 8080
heartBeatInterval: 3
connectOnAwake: 1

View file

@ -251,6 +251,7 @@ namespace LightReflectiveMirror
EditorUtility.SetDirty(lrm);
}
}
serializedObject.ApplyModifiedProperties();
break;
case 1:
// NAT punch tab.
@ -273,6 +274,7 @@ namespace LightReflectiveMirror
GUI.enabled = true;
directModule.directConnectTransport = (Transport)EditorGUILayout.ObjectField("Direct Transport", directModule.directConnectTransport, typeof(Transport), true);
}
serializedObject.ApplyModifiedProperties();
break;
case 2:
// Load balancer tab
@ -284,7 +286,7 @@ namespace LightReflectiveMirror
lrm.region = (LRMRegions)EditorGUILayout.EnumPopup("Node Region", lrm.region);
if (!lrm.useLoadBalancer)
GUI.enabled = true;
serializedObject.ApplyModifiedProperties();
break;
case 3:
// Other tab...
@ -305,6 +307,7 @@ namespace LightReflectiveMirror
EditorGUILayout.Space();
EditorGUILayout.PropertyField(serializedObject.FindProperty("diconnectedFromRelay"));
EditorGUILayout.PropertyField(serializedObject.FindProperty("serverListUpdated"));
serializedObject.ApplyModifiedProperties();
break;
}
EditorGUILayout.EndVertical();