Question by
Raviraja190 · Jun 15, 2019 at 02:01 PM ·
triggercollidersontriggerenteroncollisionentercollisions
Triggers Colliding With Triggers Not Working? [Solved]
private void OnTriggerEnter(Collider col) { if (col.gameObject.tag == "Player")
{
Debug.Log ("Won");
//Destroy(col.gameObject);
}
Comment
Best Answer
Answer by Raviraja190 · Jun 15, 2019 at 02:04 PM
Yes its Working!
First, You have to make sure the rigidbody is attached to both of the gameobjects. Then add colliders to them. Only one has to be checked triggered. Then attach the script to the one of the gameobject which you have to trigger.
Your answer
Follow this Question
Related Questions
C# OnTriggerEnter Issue 3 Answers
Trigger and Rotation Issue 0 Answers
Calling "OnTriggerEnter" when a parent object has a rigidbody 0 Answers
How can I make a collider that gives me stat up to stop giving me it? 0 Answers
Colliders for tunnels 0 Answers