示例#1
0
 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);
        });
    }
示例#3
0
 public void Close()
 {
     // Shrink out of view
     UISettings.CloseWindow(rootRect).OnComplete(OnWindowFinishedClosing);
 }
示例#4
0
 private void Close()
 {
     UISettings.CloseWindow(window).OnComplete(Disable);
 }