public override void OnInspectorGUI() { base.OnInspectorGUI(); GUI.enabled = Application.isPlaying; HeadsetControlsAsset scriptableControler = target as HeadsetControlsAsset; if (GUILayout.Button("On Controls Enable Value Changed")) { // ?? scriptableControler.IsPlayerControlsEnabled.OnValueChangedHandler.Invoke(scriptableControler.IsPlayerControlsEnabled.Value); } if (GUILayout.Button("Stop All Movement")) { scriptableControler.StopAllMovement(); } }