pun 1.3, offline mode
Options
gnoblin
✭
I modified EnableScript.cs to be able to use PhotonNetwork.offline mode:
and this way I get
because
when/how should I turn offline mode on in order for everything to work correctly? (right now my code doesn't work properly I suppose)
thanks,
Slav
public class EnableScript : MonoBehaviour { public GameObject game; public GameObject mainMenu; public bool offline_mode = false; /// <summary> /// Enable one GO and remove the other /// </summary> void Awake () { if (PhotonNetwork.room != null || offline_mode) { if(offline_mode) { PhotonNetwork.offlineMode = true; } game.active = true; Destroy(mainMenu); } else { Destroy(game); mainMenu.active = true; } Destroy(gameObject);//We dont need this anymore } }
and this way I get
warning every time I send RPC,"Cannot send RPCs in Lobby! RPC dropped."
because
room==null
when/how should I turn offline mode on in order for everything to work correctly? (right now my code doesn't work properly I suppose)
thanks,
Slav
0