Reputation: 67
private void OnTriggerEnter2D(Collider2D other)
{
if (other.tag == "Player")
{
Debug.Log("I got power up");
Destroy(this.gameObject);
}
}
When these two collide nothing is happening...idk why
Player has:
Tag:Player
Box Collider 2D with Trigger True
and Has a Rigid Body
Triple_Shot_Powerup has:
Box Collider 2D with Trigger True
and Has a Rigid Body
Upvotes: 0
Views: 108
Reputation: 41
You dont need rigid body on both objects. if you have rigid body attached to both object make sure your rigidbody Checkbox must be checked
Upvotes: 0