예제 #1
0
    void Start()
    {
        mapHandler = FindObjectOfType <PlayerMapHandler>();
        socket     = GetComponent <SocketIOComponent>();
        newMap     = new Map();
        currentMap = new Map();

        socket.On("update-map", UpdateMap);
    }
예제 #2
0
    private void Start()
    {
        mapHandler = FindObjectOfType <PlayerMapHandler>();
        socket     = GetComponent <SocketIOComponent>();

        Invoke("RequestMeshData", 1);

        socket.On("update-mesh", ParseSingleMesh);

        socket.On("update-mesh-all", ParseBulkMesh);
    }