Ejemplo n.º 1
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     if (collision.gameObject.layer == 3)
     {
         Destroy(collision.gameObject);
         Destroy(this.gameObject);
         Puntaje.AddPoints(10);
         Debug.Log(Puntaje.GetPoint());
     }
 }