Answer the question
In order to leave comments, you need to log in
How to write OnCollisionEnter()?
pastebin.com/NT4sdd9L
gives Script error: OnCollisionEnter
This message parameter has to be of type:
The message will be ignored.
why?
Answer the question
In order to leave comments, you need to log in
OnCollisionEnter there is a collision parameter, not a collider. Collisions don't have tags or anything.
oid OnCollisionEnter(Collision bullet)
{
if (bullet.(ТУТ УЗНАТЬ КОЛЛАЙДЕР ИЗ КОЛЛИЗИИ).CompareTag("Ring"))
{
r = true;
Debug.Log("R");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question