public void EmittedStartGame(SocketIOEvent e) { string lobbyid = e.data.GetField("lobbyid").str; if (lobbyid == LoginScript.CurrentUserLobbyId) { ReceiveBoardScript recive = new ReceiveBoardScript(); recive.getGameBoardNotMaster(); SceneChanger n = new SceneChanger(); n.startGame(); } }
// Start is called before the first frame update void Start() { ReceiveBoardScript recive = new ReceiveBoardScript(); recive.RequestLobbyidAndGameid(); /* * string path = "board.json"; * byte[] byteArray = File.ReadAllBytes(path); * string result = System.Text.Encoding.UTF8.GetString(byteArray); * File.Delete(path); * * BoardConnectivityJson table = JsonUtility.FromJson<BoardConnectivityJson>(result); * * SaveTable.saveTable(table); * * BoardConnectivityJson boardd = SaveTable.LoadTable(); */ }