摄像机 |
|
|||||||||||||||||||||||||||
Unity编辑器常用的settings |
|
|||||||||||||||||||||||||||
坐标 |
|
|||||||||||||||||||||||||||
控制器 |
|
|||||||||||||||||||||||||||
精灵(Sprite) |
|
|||||||||||||||||||||||||||
目录结构 |
|
|||||||||||||||||||||||||||
tag |
|
|||||||||||||||||||||||||||
layer |
|
|||||||||||||||||||||||||||
射线 |
|
|||||||||||||||||||||||||||
图集(atlas) |
|
|||||||||||||||||||||||||||
设计原则 |
|
|||||||||||||||||||||||||||
灯光 |
|
|||||||||||||||||||||||||||
设计模式 |
|
|||||||||||||||||||||||||||
服务器端 |
|
|||||||||||||||||||||||||||
客户端 |
|
|||||||||||||||||||||||||||
Unity窗口插件开发 |
|
|||||||||||||||||||||||||||
API |
|
|||||||||||||||||||||||||||
UGUI |
|
|||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||
|
|
- 项目目录结构
- Scenes/
- UI/
- Audio/
- Materials/
- Effects/
-
Resources/
- UI/
- Roles/
- StreamingAssets/(初始资源)
-
Bundles/(项目资源更新)
- version.txt
- …
- Models/
-
Editor/
-
Menu.cs
- [MenuItem("Left God/Debug Window")]
- public static void DebugWindow()
-
{
- DebugWindow debugWindow = EditorWindow.GetWindow<DebugWindow>();
- debugWindow.titleContent = new GUIContent("Debug Window");
- debugWindow.Show();
- }
- …
-
DebugWindow.cs
- extends EditorWindow
-
-
Scripts/
- Test/
-
Protocols/
- 定义的一堆协议
-
Core/
-
EventCenter(观察者)
- extends Singleton
- Dispatch
-
Singleton.cs
- public Singleton<T> where T : new()
-
{
- private static T _sharedObject;
- public static T SharedObject()
-
{
- if (_sharedObject == null)
-
{
- _sharedObject = new T();
- }
- return _sharedObject;
- }
- }
-
SingletonMono.cs
- public SingletonMono<T> where T : Compoent
-
{
- private static T _sharedObject;
- public static T SharedObject()
-
{
- if (_sharedObject == null)
-
{
GameObject gameObject = new GameObject(nameof(T));
DontDestroyOnLoad(gameObject);
_sharedObject = gameObject.GetOrCreateCompoent<T>();
- }
- return _sharedObject;
- }
- }
-
Network/
- NetworkHttpClient.cs
- NetworkSocketClient.cs
-
UI/
- UISceneManager.cs
- UIWindowManager.cs
- UILayerManager.cs
- UIViewBase.cs
-
UIViewSceneBase.cs
- Container
- UIViewWindowBase.cs
- Views/
- Controllers/
-
AssetBundle/
- AssetBundleLoader.cs
- AssetBundleLoaderAsync.cs
- AssetBundleManager.cs
- AssetBundleDownloader.cs
-
Camera/
- CameraController.cs
- EffectManager.cs
-
Role/
-
AI/
- IRoleDoAI.cs
- IMonsterDoAI.cs
- IDoAI.cs
-
FSM/
- FSMManager.cs
-
RoleStates
-
RoleStateAbstract.cs
- OnEnter()
- OnUpdate()
- OnExit()
- RoleStateIdle.cs
- RoleStateHurt.cs
- RoleStateAttack.cs
- RoleStateDie.cs
- RoleStateRun.cs
- …
-
- RoleController.cs
- RoleManager.cs
-
-
Logger.cs
- Debug();
- ResourceManager.cs
- AudioManager.cs
- EnumDefs.cs
- ConstDefs.cs
- Global.cs
-
BufferStream.cs
- extends MemoryStream
- ReadShort()
- WriteShort(value);
- ReadInt();
- WriteInt(value);
- ReadString();
- WriteString(value);
-
-
Extensions
-
GameObject.cs
- GetOrCreateCompoent<T>()
-
-
Utils
- StringUtil.cs
- EncroptUtil.cs
-
插件
- UGUI HUD 文字上弹
- AStarPathfinding Project
- LitJson