上一章服务器已经完成使用PESorket
现在我们将其导出在客户端中使用




生成成功后复制

粘贴到Unity项目中

进入Assets文件夹

粘贴两个.dll


创建脚本:ClientSession.cs

编写脚本: ClientSession.cs

编写脚本:GameStart.cs

将GameStart.cs脚本绑定在摄像机上

运行服务器

运行客户端

当我们在客户端按空格键时

本章结束
上一章服务器已经完成使用PESorket
现在我们将其导出在客户端中使用
生成成功后复制
粘贴到Unity项目中
进入Assets文件夹
粘贴两个.dll
创建脚本:ClientSession.cs
编写脚本: ClientSession.cs
编写脚本:GameStart.cs
将GameStart.cs脚本绑定在摄像机上
运行服务器
运行客户端
当我们在客户端按空格键时
本章结束