Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.
Erik edited this page Apr 27, 2019 · 56 revisions

General knowledge

Prior to diving in, consider checking out one of Unity's tutorials.


Notable Pages


Script Documentation

General Scripts
Generic Character Scripts
Enemy Scripts
Player Scripts
UI Scripts

Singular Responsibility!

Most beginners make the mistake of shoving too much functionality into an individual script. While you could technically get your game working with a few giant scripts, continuing to develop and extend that code requires an impressive mental fortitude and perseverance. If your script handles 15 different things about a player, when you need to change 1 of them you have to worry about all of them! This is where most beginners find themselves starting a new game development project every other day as they can't possibly keep up with the complexity.

You can avoid code monoliths by coding with SOLID design principles in mind. Specifically in this case, the single responsibility principle. Every script should only be responsible for one functionality. It is at your discretion as to what degree "singular responsibility" means since technically you could have a script "responsible for the player" that does 100 different things. However, you could also technically break a script down into parts that are too small to reasonably manage as well. This is something that is learned over time, so don't sweat it. Try your best and learn from past frustrations and others.

Clone this wiki locally