Accessing the text component

Hi,
is there a particular reason for accessing the text component using a serializedField in DamageText,cs instad if doing instance.GetComponentInChildren in DamageTextSpawner.cs ?

Nope, either way works. There are often many ways to bake the same cake.

Serialize field is faster in case performance

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms