Beispiel #1
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     if (collision.gameObject.tag == "Floor")
     {
         bubbleCreator.RandomBall(10);
         soundScript.playNewBubbles();
         transform.position = new Vector2(transform.position.x, transform.position.y + 7);
     }
 }