RemoteFunction 和 RemoteEvent
RemoteFunction 和 RemoteEvent用来和 客户端和服务器通信;
可以分为3步走:
1、创建对象
2、客户端 触发对象
3、服务器 处理事件
1、创建 RemoteFunction 和 RemoteEvent
建议用 ServerScriptService 里的脚本 创建; 并保存到 ReplicatedService里面
--动态创建 RemoteFunction 和 RemoteEvent
--Service
local ReplicatedStorage = game:GetS
原创
2021-09-15 10:17:24 ·
443 阅读 ·
0 评论