Example #1
0
 public void OnCollisionEnter2D(Collision2D collision)
 {
     if (collision.gameObject.tag == "Hole")
     {
         Destroy(gameObject);
         ui.gameOverActivation();
     }
 }