public override void OnInspectorGUI() { DrawDefaultInspector(); Script_MapNotificationsManager t = (Script_MapNotificationsManager)target; if (GUILayout.Button("Play Map Notification")) { t.PlayMapNotification("Test Map Notification"); } }
public void Setup() { if (Control == null) { Control = this; } else if (Control != this) { Destroy(this.gameObject); } mapNotification.Setup(); }