Esempio n. 1
0
    void Update()
    {
        if (Input.GetKeyDown(PauseKey))
        {
            Debug.Log("Paused");
        }

        if (Input.GetKeyDown(InteractKey))
        {
            if (glowable)
            {
                Debug.Log("Connecting");
                anim.SetTrigger("GlowGreen");

                pickUpScript.Connect();
            }
        }

        if (Input.GetKeyDown(ThrowKey))
        {
            Debug.Log("Tossed!");
        }
    }