public override void OnInspectorGUI() { DrawDefaultInspector(); IA attachedIA = (IA)target; if (GUILayout.Button("Attack")) { attachedIA.Attack(); } if (GUILayout.Button("Defend")) { attachedIA.Defend(); } }