public override void OnInspectorGUI() { if (so == null) { return; } so.Update(); serverConfig = target as ServerConfig; ShowConfig(); //DrawDefaultInspector(); if (so != null) { so.ApplyModifiedProperties(); } }
void OnEnable() { serverConfig = Resources.Load<ServerConfig>("ServerConfig"); }