Esempio n. 1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.name == "Reimu")
     {
         grabSource.pitch     = .8f * Time.timeScale;
         grabSource.panStereo = getStereoPan();
         grabSource.Play();
         DonationReimu reimu = other.GetComponent <DonationReimu>();
         reimu.grabCoin(transform);
         grab();
     }
 }
Esempio n. 2
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.name == "Reimu")
     {
         outOfPlay            = true;
         grabSource.clip      = grabClips[Random.Range(0, grabClips.Length)];
         grabSource.pitch     = Time.timeScale;
         grabSource.panStereo = getStereoPan();
         grabSource.Play();
         DonationReimu reimu = other.GetComponent <DonationReimu>();
         reimu.grabCoin(transform);
         grab();
     }
 }