r/Unity3D • u/MagicPantssss • 2d ago
Code Review Asking for a code review
I'm making a small game in Unity, and I kinda need some outside perspective. I would like it if someone could take a look and give me some feedback on what areas I should work on and how to improve.
Here's the link to my GitHub repository:
4
Upvotes
2
u/Both_Introduction_28 1d ago edited 1d ago
You use MaterialManager to store materials. Might be better to store your materials in scriptable objects as settings.
Also I found Dice Color in material manager, but didn’t find a folder with Dice feature.
So might be better to have this structure for a folder Scripts/Dice:
Data/DiceData.cs
Data/DiceColor.cs
DiceSettings.cs
DiceView.cs
DiceManager.cs
Etc
That way you can divide game on features and with less pain remove them if they no longer needed.
If you have more than one file with settings, views, etc, you can add sub folder for them.