Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

How to load multiple online scenes in unet multiplayer?

$
0
0
Hi,

I am facing a problem in multiplayer(using by unet) game. I have 4 scenes in my game.

Scene 0 - Menu
Scene 1 - Level 1
Scene 2 - Level 2
Scene 3 - Level 3

I assign menu and Level1 scene in Network Manager.
Offline Scene = Menu Scene
Online Scene = Level1 Scene

When I click on host(as a client) online scene(Level1) loads.
In Level1, I have a button in Scene-1(Level1) to load another scene(Level2).

Code (CSharp):
  1. void OnClick()
  2. {
  3.    
  4. Application.LoadLevel(2);   //2 is my Level2 scene...
How to load multiple online scenes in unet multiplayer?

Viewing all articles
Browse latest Browse all 16796


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>