Plateface Unity Development Specification (1.0)
1. The project is named in English name, pictures, audio, resources can not be used in Chinese.
2. Method Name: Pascal name (all words first uppercase)
3. field: Component field name in unity the first letter is lowercase, other letters are capitalized (Camel nomenclature)
4. Note: All exposed fields, properties, methods, document comments, only private fields, methods, can select comments
/// <summary> /// Document Comments /// </summary> // General notes
5. All classes have the Ly namespace expanded backwards (it is recommended to modify the Unity C # template for later development)
Entity class: Namespace LY. Entity lyscript/enitiy
Function class: Namespace LY. Script Lyscript/script
Common components: namespace Ly.common Lyscript/common
Wait a minute.....
Namespace LY. scirpt{publicclass changrolehead:monobehaviour { code }}
6. If a class method, too many fields should be considered using #region folding to
7. Suffix Name:
Interface: Xxxxie
Commissioned by: Xxxxde
Event: Xxxxevent
Enumeration: Xxxxenuem
Game objects:
1. Each type of UI game object in the game is named after the panel. such as the game Start menu
2. If there are too many game objects in a panel, consider
TopLeft Top TopRight
Middleleft Middle MiddleRight
Bottomleft Bottom BottomRight
Resources:
1. Pictures, audio and so on please do not directly 1000.jpg, this number is named. Please use English bullet.jpg. If the picture series bullet1000 bullet1001 this way
2. If the resource is contracted, you can remove the suffix name plus D example: bulletd.jpg, xxxd. Audio
3. If you find that the picture resources are irregular, do not know which kind of picture folder to put in, please resource/image/xxxpanel (please contact your boss to discuss)
Folder:
Script:
Myscript/common Public Script
Myscript/entity entity class
Myscript/script Common Components
Myscript/interface interface
Myscirpt/enum Enumeration
myscript/script/stand-alone framework script
Myscript/scirpt/ui
myplugins/xxxx/Use the plugin please transfer to here
Resources:
Resource/atlas Texture
Resurce/image/ui UI
Resurce/image/texture Stickers
Resurce/font fonts
Resurce/prefabes Presets
Resurce/sound/music Game Music
RESURCE/SOUND/FX Game Sound
=============================================================================================================== =====================================
Actual coding section:
1. All components must be inherited by component-> Mycompoment-monobehaviour
2. The game sound is unified by Soundcontroller, if not unified need to listen to Soundcontroller.isopen properties, to determine whether to play
3. All formal commissioning functions are registered to the commissioning center
=============================================================================================================== ========================================
Team Work section:
1. Please do not contact your boss to ask questions, if found that your problem can not solve, or take a long time to solve, project time is very urgent. You can contact your boss. you have to remember that the more you study the less you learn, the more you learn and what others tell you is completely different.
2. Please give your boss a detailed technical field of your programming for example, in the project will inevitably encounter other technical areas, you need to provide detailed information to your boss. A good arrangement of tasks
3. When your task is completed, it is recommended that you ask your team if you need help, or if you are having problems. Can I help you solve this? (When you think the program is not written by one person, you are already in another area)
4. Life needs: If you feel the salary is too small, please give your boss when not busy to apply for the adjustment to how much monthly salary. (The old assembly is carefully audited);
5. If you have a problem with someone in your group, please tell the boss privately. The old General Assembly arranges you two public chats (the eldest brother listens, you are talking about, hoped not to fight), if found that you feel the salary, here to learn the technology, you have the opinion to someone. Hide the heart not to say. A direct dismissal when the work part is seriously affected.
6. What are your frameworks or ways to improve your team? Can explain to the eldest brother. A team vote to decide whether to carry out
7. You are welcome to join the team, you can be a good friend outside the work. (It doesn't matter if you want to do it) here, try to create a team that is not created in a group of people to write the code environment together.
Precautions:
1. Try not to use the 3 letter shorthand method in the project
2. If you find that the development specifications and the actual development of any disagreement, please contact your boss return situation
Unity Code Specification (plateface) version 1.0