Unity Photon Pun 本地搭建服务器 连接失败

yungshingzheng 2020-09-19 01:15:55
本地Photon服务器正常运行。显示的是Photon Runing 。
Unity中。
 public void OnStatusChanged(StatusCode statusCode)
{
Debug.Log("状态改变:"+statusCode);
}

运行后:
状态改变:ExceptionOnReceive
状态改变:Disconnect
哪里出问题了?
...全文
503 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
unity多人赛车游戏项目源码Photon Rally Tutorial v1.1.0 Requires Unity 5.2.2 PUN Rally is a complete base project for a multiplayer combat racing game using Photon, the most popular network platform for Unity. The project includes all sources and a 30+ pages illustrated tutorial book (PDF) explaining its use of realistic physics, dead-reckoning, checkpoint-based positions, power-ups, weapons and several other important features of multiplayer games, such as lobby control, car-selection and server-synced race-start. FEATURES Realistic physics based on standard colliders, wheel-colliders and rigidbody. Detailed suspension movement. Real-time race synchronization over the internet using PUN (Photon Unity Network). Dead-reckoning techniques to smoothly deal with latency. (new) Complete weapon system (with ammo, network sync and multiple weapons) (new) Extensible power-ups system with sample increase, decrease speed and weapon ammo reloads Server-synced start and grid spawns. Checkpoint-based race management (positions, laps, finish, etc). Custom car selection (prefabs based) for connected players. The project is a foundation for a multiplayer racing game, but also serves as a comprehensive introduction to several multiplayer concepts with Photon: Dealing with lobbies, rooms creation and joining. Managing player connection and disconnection (both in menus and races). Using custom player properties. Remote Procedure Calls (RPCs). Server-based time/clock (for race start). The PhotonView component. Custom network synchronization of GameObjects. PUNBehavior and Photon.MonoBehavior classes.

2,538

社区成员

发帖
与我相关
我的任务
社区描述
Unity3D相关内容讨论专区
游戏unity 技术论坛(原bbs)
社区管理员
  • Unity3D
  • 芝麻粒儿
  • 「已注销」
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

Unity3D社区公告:

  1. 社区致力于解决各种Unity3D相关的“疑难杂症”。
  2. 社区不允许发布与Unity3D或相关技术无关内容。
  3. 社区版主邀请各位一道为打造优秀社区不懈努力。

试试用AI创作助手写篇文章吧