Clone
1
成员与属性
Eicy edited this page 2024-12-04 00:41:29 +08:00
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

成员与属性

网络框架中有几个专门的数组用于储存连接上服务器的客户端的UUID、客户端当前加载的Unity场景int类型索引等。

服务端与客户端属性

我们对多人游戏开发定一条原则 —— 玩家的血量等影响到多人游戏内容的数据一定要由服务端管理,玩家如果血量下降那么客户端需要做的只有运行ServerRPC要求服务器修改想要修改的值,然后由服务端进行广播同步。