Hey
I learnt recently about `GameObject.CompareTag()` when Rider suggested it had better performance than a "explicit string comparison". I'm not sure of difference to use of `string.Equals()` but see this answers question for some notes indicating it allocates!
I noticed `HasEnteredTrigger` line 28 (and all the accompanying Collision Actions, etc) currently use `tag.Value.Equals(other.gameObject.tag)`. Is there merit in converting these?
Thx
I learnt recently about `GameObject.CompareTag()` when Rider suggested it had better performance than a "explicit string comparison". I'm not sure of difference to use of `string.Equals()` but see this answers question for some notes indicating it allocates!
I noticed `HasEnteredTrigger` line 28 (and all the accompanying Collision Actions, etc) currently use `tag.Value.Equals(other.gameObject.tag)`. Is there merit in converting these?
Thx