Skip to content

Commit

Permalink
Update coding.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpeppers committed Jan 17, 2014
1 parent be2d6fd commit 833e300
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions coding.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public class NickCage : MonoBehaviour

If you can make Unity generate files like this by default, I will give you a cookie.

#Empty methods

Delete empty methods that are not conforming to a base class or interface. If it is a Unity method like `Start` or `Update` it will actually slow the game down if you do not remove them. If I see them, I will make fun of you.

#Commented code

If it is a quick hack you are going to fix later, it is OK to *temporarily* comment out code. If there is commented code that you are not sure what it does, or has been there a while, *DELETE IT*! We have source control, there is no reason to commit commented code long term.
Expand Down

0 comments on commit 833e300

Please sign in to comment.