/// <summary> /// Show a simple modal /// </summary> private void ShowModal() { ModalManager.Show("Modal Title", "Show your message here", new[] { new ModalButton() { Text = "OK" } }); }
/// <summary> /// Shows a modal with callback /// </summary> private void ShowModalWithCallback() { ModalManager.Show("Change Background Color", "Change background color to a random color", new[] { new ModalButton() { Text = "YES", Callback = ChangeColor }, new ModalButton() { Text = "NO" } }); }
private static void DomainReset() { s_Instance = null; }
private void OnDisable() { s_Instance = null; }
public void OnEnable() { s_Instance = this; }