namespace Gravitons.UI.Modal { using UnityEngine; /// /// Base class for all modals /// public abstract class Modal : MonoBehaviour { /// /// Closes this modal /// public virtual void Close() { Destroy(gameObject); } /// /// Shows the modal with the given content /// /// Content to show /// Button properties public abstract void Show(ModalContentBase modalContent, ModalButton[] modalButton); } }