private void Update()
 {
     if (Input.GetKeyDown(KeyCode.Q))
     {
         _popupManager.Open <SampleOptionsPopup>();
     }
     if (Input.GetKeyDown(KeyCode.W))
     {
         _popupManager.Close <SampleOptionsPopup>();
     }
     if (Input.GetKeyDown(KeyCode.E))
     {
         _popupManager.Open <SamplePausePopup>();
     }
     if (Input.GetKeyDown(KeyCode.R))
     {
         _popupManager.Close <SamplePausePopup>();
     }
     if (Input.GetKeyDown(KeyCode.T))
     {
         _popupManager.Open <SampleWinPopup>();
     }
     if (Input.GetKeyDown(KeyCode.Y))
     {
         _popupManager.Close <SampleWinPopup>();
     }
 }
Exemplo n.º 2
0
 public void Close()
 {
     PopupManager.Close(this);
 }