i want detect collision from my player and an object called NOTE i attach this to my player
function Update()
{
}
function OnTriggerEnter(collisionInfo : Collider){
if (Datadat.misi==1){
if (collisionInfo.gameObject.tag =="note"){
Destroy(collisionInfo.gameObject);
misiSatu.a += 1;
GameObject.Find("NOTETEXT11").SetActiveRecursively(true);
}
}
}
i have change the NOTE tag to "note", the mesh collider i set Is trigger, but when my player coolide nothing happen, just through with NOTE object..