Esempio n. 1
0
 void OnCollisionEnter2D(Collision2D thisCollision)
 {
     if (thisCollision.collider.tag == "Wall")
     {
         if (timer >= 15)
         {
             if (manager.BallHitBorder(gameObject))
             {
                 Split();
             }
             else
             {
                 Bounce();
                 FlipColor();
             }
         }
     }
     else
     if (thisCollision.collider.tag == "Player")
     {
         Bounce();
         hitConAudio.Play();
     }
 }