Beispiel #1
0
 void OnTriggerEnter2D(Collider2D c)
 {
     if (c.CompareTag("Player"))
     {
         player.Damage(1);
     }
 }