Hello. How to I detect when a trigger (with a certain tag) enters a character controller? Thanks
void OnTriggerEnter(Collider other)
{
if(other.gameObject.tag == “WhateverTag”)
{
// A thing got detected!
}
}
This is pretty straightforward.
Hello. How to I detect when a trigger (with a certain tag) enters a character controller? Thanks
void OnTriggerEnter(Collider other)
{
if(other.gameObject.tag == “WhateverTag”)
{
// A thing got detected!
}
}
This is pretty straightforward.