Ejemplo 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);
        }
    }
Ejemplo 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();
        }
    }