public void Close() { UISettings.CloseWindow(rootTransform).OnComplete(() => { onUnlockFinished.Invoke(); Destroy(gameObject); }); }
public void Close(ResponseType action) { UISettings.CloseWindow(window).OnComplete(() => { // Try to get and invoke the requested response UnityAction response = responses.Get(action); if (response != null) { response.Invoke(); } // Destroy the window Destroy(gameObject); }); }
public void Close() { // Shrink out of view UISettings.CloseWindow(rootRect).OnComplete(OnWindowFinishedClosing); }
private void Close() { UISettings.CloseWindow(window).OnComplete(Disable); }