public override void OnInspectorGUI() { DrawDefaultInspector(); GunController gunScript = (GunController)target; if (GUILayout.Button("Apply Settings")) { gunScript.ApplySettings(); } }
public override void OnInspectorGUI() { DrawDefaultInspector(); GunController gunScript = (GunController)target; if (GUILayout.Button("Apply Settings")) { gunScript.ApplySettings(); } }