Esempio n. 1
0
    // 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);
        }
    }
Esempio n. 2
0
    // 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();
        }
    }