public override void OnEnable() { nstMaster = (NSTMaster)target; mna = nstMaster.EnsureHasCorrectAdapter(); headerName = HeaderMasterName; headerColor = HeaderSettingsColor; base.OnEnable(); }
public override void OnInspectorGUI() { nstMaster = (NSTMaster)target; mna = nstMaster.EnsureHasCorrectAdapter(); nstSettings = NSTSettings.EnsureExistsInScene(NSTSettings.DEFAULT_GO_NAME); base.OnInspectorGUI(); if (mna == null) { EditorGUILayout.HelpBox( "No network library adapter found for '" + Enum.GetName(typeof(NetworkLibrary), nstSettings.networkingLibrary) + "'", MessageType.Error); } EditorGUILayout.HelpBox("The NST Master is a required engine singleton. It collects and dispatches all NST Updates, and receives incoming updates from the network.", MessageType.None); }