Ejemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     //checks the tag of the collider to see if it's the player.
     if (other.tag == "Player")
     {
         //give the player the powerup and destroy the pickup
         boots.HighJump();
         Destroy(lights);
         Destroy(gameObject);
     }
 }