"object hit" script if statement ignoring the tag specification of "player"

Hi,

Welcome to our community! :slight_smile:

If the code works correctly, check the Unity Editor. The spelling of the tags must be excactly the same in your code and in the Unity Editor.


See also: