Beispiel #1
0
 public override void OnEnabled(Scene scene)
 {
     if (Player.isMultiplayer)
     {
         if (Player.isHost)
         {
             Networking.HostAndConnect();
         }
         else
         {
             Networking.ConnectTo(NetworkInfo.localhost);
         }
     }
 }