void Start() { mapHandler = FindObjectOfType <PlayerMapHandler>(); socket = GetComponent <SocketIOComponent>(); newMap = new Map(); currentMap = new Map(); socket.On("update-map", UpdateMap); }
private void Start() { mapHandler = FindObjectOfType <PlayerMapHandler>(); socket = GetComponent <SocketIOComponent>(); Invoke("RequestMeshData", 1); socket.On("update-mesh", ParseSingleMesh); socket.On("update-mesh-all", ParseBulkMesh); }