Esempio n. 1
0
 private void SpeedDown_Collision(MotherCollider obj)
 {
     if (obj.gameObject.tag == ("Player"))
     {
         collided = false;
         obj.GetComponent <SphereMovement>().speed = newSpeed;
     }
 }
 private void Jump_Collision(MotherCollider obj)
 {
     if (obj.gameObject.tag == "jump" && !isJumping)
     {
         timer = 0;
         colliders.grounded = false;
         obj.GetComponent <Animator>().SetTrigger("istriggered");
         isJumping = true;
         SoundsourceJump.PlayOneShot(AudioContainer.au_jump);
     }
 }
Esempio n. 3
0
 private void SpeedUP_Collision(MotherCollider obj)
 {
     if (obj.gameObject.tag == "Player")
     {
         collided = false;
         obj.GetComponent <SphereMovement>().speed = newSpeed;
         if (!collided)
         {
             if (!SoundsourceSeedUp.isPlaying)
             {
                 SoundsourceSeedUp.PlayOneShot(audioContainer.au_faster);
                 collided = true;
             }
         }
     }
 }