示例#1
0
 void OnTriggerEnter(Collider col)
 {
     if (col.gameObject.CompareTag("Hand") && canPress)
     {
         audioSrc.PlayOneShot(buttonSounds[0]);
         scriptManager.ButtonClicked(this.gameObject);
         canPress = false;
         StartCoroutine("Cooldown");
     }
 }