public serverJson loadSession() { string sessionjson = skinManager.getServerJson(); serverJson currentSession = JsonUtility.FromJson <serverJson>(sessionjson); return(currentSession); }
public void clientSetSession(serverJson currentSession) { //write current session to disk for debug session = currentSession; var sessionjson = JsonUtility.ToJson(currentSession); File.WriteAllText(sessionJsonPath, sessionjson); UI.UIManager.InfoBox.AddMessage($"Welcome to {currentSession.Name}"); UI.UIManager.InfoBox.AddMessage($"Hosted by {currentSession.Host}"); }
public void clientSetSession(serverJson session) { skinManager.clientSetSession(session); }