// Update is called once per frame void Update() { if (Input.GetButtonDown("Fire1") && cam.isInFrame(centralPos)) { //Checks if Screen is pressed and if obj is in frame Popup.InfoBox("Hint!", hintMessage); } }
// Update is called once per frame void Update() { if (Input.GetButtonDown("Fire1") && cam.isInFrame(centralPos)) { //Checks if Screen is pressed and if obj is in frame GameController.SwitchToGame(); } }