// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { print("Pressing Key Escape"); if (!settingsPopup.IsOpen()) { OnOpenSettings(); } else { OnCloseSettings(); } } }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { print("Pressing Key Escape"); if (!settingsPopup.IsOpen()) { OnOpenSettings(); } else { OnCloseSettings(); } } }