Hey Team! Great work btw, love the content!
I always try to do the next steps on my own and see if the course leads the same way… So far so good.
Now, regarding the DebugGridObject, I just set the text of the TMPro-Text after instantiating GridDebugObject-Prefab.
Transform debugObject = GameObject.Instantiate(debugPrefab, GetWorldPosition(gridPosition),Quaternion.identity);
debugObject.GetComponentInChildren<TextMeshPro>().text = "X: " + x + "\n" + "Z: " + z;
So yeah, this works, but Hugo created the GridDebugObject class and handled it that way, which seemed a little overkill to me (I mean not really, its 4 lines code more )
So, long story short, are we going to do more in the future with this class, do I need it, or can I just leave it as is? Or is there any notes to my method e.g. bad coding?
Thats it! Thanks again for this awesome learning content, loved the courses on udemy already, but here with a forum its even better! Hope I find the time to really engage with the community.
Regards and thanks in advance,
Alex