Esempio n. 1
0
        public override void OnEnable()
        {
            nstMaster = (NSTMaster)target;
            mna       = nstMaster.EnsureHasCorrectAdapter();

            headerName  = HeaderMasterName;
            headerColor = HeaderSettingsColor;
            base.OnEnable();
        }
Esempio n. 2
0
        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);
        }