-
Notifications
You must be signed in to change notification settings - Fork 43
EnvSetup
jiepengtan edited this page Nov 20, 2019
·
1 revision
- 1.NetCore2.2以上
- 2.Mono
- 3.GitForWindows(Windows用户才需要)
- 1.Game.Model
- 这里放置的是MVC 中Model and Control 代码(Logic 层)
- 2.Game.View
- 这里放置的是MVC 中View 代码(View 层),依赖于Model 层
- 3.Tools.UnsafeECS.ECSDefine.Game
- 这里放置的是你对游戏中 Entity Component System 以及全局状态 State 的定义,必须保证该子dll 是能编译的(不能依赖于Model 或 View 层)
- 4.Scripts
- 这里放置一些Editor或和游戏逻辑无关的代码
-
Windows 用户
- 使用gitBash 执行 Client.Unity/DataAndTools/Tools/UpdateAndCodeGen_Win.sh
-
Mac 用户
- 使用命令行执行 Client.Unity/DataAndTools/Tools/UpdateAndCodeGen.sh
- 或直接双击运行 Client.Unity/DataAndTools/Tools/UpdateAndCodeGen (注意无后缀)
-
1.打开场景
-
- 确保钩上了 ClientMode 选项
- 确保钩上了 ClientMode 选项
-
- 运行 游戏
- A D 控制方向
- Space 释放技能 (Boid demo 才有技能)
-
1.打开Game.sln
-
2.编译并运行 Game.sln
-
3.确保关闭了单机模式 ClientMode
-
4.Build
-
5.Run Client
-
- 现在是简单帧同步模式
(Build 版本代码中为了方便测试,做了限制自动绕圈圈,你可以修改他)