ok so if you attatch a script to a trigger and you want to find out if an object has entered the trigger area through the code in the script you use “OnTriggerEnter”
BUT…
What if you wanted to attatch a script to an object and you want to find out if the object has entered a trigger area through the code in the script, what would you use?
Eg: from the trigger pov = OnTriggerEnter.
from the players pov = ???. OnEnterTrigger?
is this possible? or do you need to write a code that
1-> checks if an object has entered it,
2-> then which object,
2.5->what is the apropriate response to this object.
3-> then calls the apropriate function,
4-> in the apropriate script,
5-> attatched to the appropriate object,
as aposed to
1-> have i entered a trigger
2-> is it the right trigger needed
3-> perform the aropriate reasponse (ie: do something/ ignore it)