/// <summary>
 /// Update bounce count
 /// </summary>
 /// <param name="coll">collision info</param>
 void OnCollisionEnter2D(Collision2D coll) {
     hud.AddBounce();
 }
Пример #2
0
 /// <summary>
 /// Update bounce count
 /// </summary>
 /// <param name="coll">collision info</param>
 void OnCollisionEnter2D(Collision2D coll)
 {
     hud.AddBounce();
     audioSource.Play();
 }