Best Practice for an object that is both online and offline using uNET
This is an awkward question but I am wondering what is the most common or best practice for any objects that appear both online or offline.
To clarify I will quickly explain why i ask. I have a game which features scenes that can be used both offline and online. I also have the player object which works fine online in the standard sequence of, Go to main menu, go to lobby to join/host game, enter level.
This works fine but currently if I was to play my single player game the sequence goes like this, main menu, enter level in single player.
The problem here is both the main camera and player cannot spawn due to the network identity, and I don,t enter the lobby where the network manager is created and hosting is done.
I can think of a few workarounds such as making an offline and online payer or possibly moving the network manager to the main menu and running single player locally.
I really do not know what is the best approach so any advice is great. I really would like to know how the AAA guys manage it.
Any questions please freely ask.