mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Deleted redundant broken line.
This is covered below One Python Way anyways.
This commit is contained in:
parent
1fa099f402
commit
0e781424d5
@ -115,8 +115,6 @@ Start reading our code and you'll get the hang of it. We optimize for readabilit
|
||||
Always use braces even for one line if's. Unity did this everywhere, and there is value in not accidentally missing a line in an if statement because there were no braces.
|
||||
* **Variable naming**
|
||||
\`NetworkIdentity identity\`, not \`NetworkIdentity uv\` or similar. If the variable needs a comment the name needs to be changed. For example, `msg = ... // the message` use `message = ...` without a comment instead
|
||||
* **type vs. var**:
|
||||
Please use 'int x' instead of 'var x', etc. in all cases. Here is why: whenever
|
||||
* **private**
|
||||
Fields and methods in a class are private by default, no need to use the private keyword there.
|
||||
Note fields and methods are public by default in structs so it might be necessary there.
|
||||
|
Loading…
Reference in New Issue
Block a user