Ben mentioned it’s less resources to check for the script instead of a tag, but is it better than just checking for the name of the game object? Also, why is it more efficient than checking the tag? He said “it can be checked at compile time,” but what does that mean?
I have the code below that checks for the object name, without checking for a script.
if (obj.name == "Gravestone") {Jump();}
Any reason not to use this approach?
Thanks.