Exemplo n.º 1
0
 private void OnTriggerEnter2D(Collider2D collider)
 {
     if (collider.CompareTag("Player"))
     {
         // Player hit Spikes
         playerPlatformerController.Damage(20);
     }
 }