Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        if (playerInRange && Input.GetKeyDown(KeyCode.Mouse0))
        {
            if (player.throwAwayTop())
            {
                AudioSystem.playLocalAudio(AudioType.TRASH, transform.position, 100);

                trashedCount++;
                Score.IncrementScore();                  //can add a float in the argument for a custom val
            }
        }
    }