How can i detect if my GO collided with collider with name starting with PP?
I want to detect colisions only from collider PP1, PP2, PP3…
Sorry for my english
How can i detect if my GO collided with collider with name starting with PP?
I want to detect colisions only from collider PP1, PP2, PP3…
Sorry for my english
You can do:
if(collision.collider.name.StartsWith("PP"))
{
}