I’m working on my first game, and need some help.
In this video:
He says that using Find and FindWithTag is inefficient. Why?
Should I just use [SerializeField] gameObject for all of my objects then?
Also, currently in my game, I start all of my ground as “ground_”. So my code would look like:
if (collision.gameObject.name.Substring(0, 6).Equals("ground"))
Is that okay?
Should I use tags instead?
Or maybe layerMasks? I don’t really know how those work, but is that how most people classify their objects?