#I need help with collider enters

1 messages · Page 1 of 1 (latest)

ancient gorge
#

I need help

private void OnTriggerEnter(Collider collider)
{
if(collider.transform.CompareTag = (bannedlol))

{
    StartCoroutine(TestPressCheck());
}

if (!base.enabled || !(touchTime + debounceTime < Time.time))
{
    return;
}
touchTime = Time.time;
Debug.Log("collision detected" + collider, collider);
#

Ignore the names, those work

violet grotto
#

it's not a variable

#

it's a function

#

and you cannot assign it to a value

#

call the function

ancient gorge
#

That has Collider other I have Collider collider

glacial sparrow
ancient gorge
#

Oh oke

violet grotto
#

variable names mean nothing

strange fable
#

pingas xd

ancient gorge
#

Ik but it says "CompareTag" is a nethod group

#

@violet grotto

violet grotto
#

so call it

#

like the method it is

#

instead of assigning it to a variable

ancient gorge
#

Idk how