Exemplo n.º 1
0
 void OnTriggerStay(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         //Debug.Log ("letter");
         if (Input.GetKeyDown(KeyCode.Space))
         {
             this.gameObject.GetComponent <MeshRenderer> ().enabled = false;
             textController.DisableTextBox();
             textController.currentLine++;
             sound.PlayOneShot(pickUpSound);
         }
     }
 }