private void Construct(IMultiplayerNetworkSystem system, IRoomOptions options)
 {
     _networkSystem              = system;
     _roomOptions                = options;
     _roomName                   = _roomOptions.DefaultRoomName;
     _networkSystem.OnConnected += HandleOnConnected;
 }
Exemplo n.º 2
0
 private void Inject(IMultiplayerNetworkSystem networkSystem)
 {
     if (photonView.IsMine)
     {
         networkSystem.CreateRemotePlayerLocalPlayer(this, photonView);
     }
     else
     {
         networkSystem.CreatedRemotePlayer(this, photonView);
     }
 }
Exemplo n.º 3
0
 private void Inject(IMultiplayerNetworkSystem networkSystem)
 {
     _networkSystem = networkSystem;
 }