public static extern void UpdateVrsenal([MarshalAs(UnmanagedType.FunctionPtr)] Vrsenal_update_Callback callbackPointer);
    // Use this for initialization
    void Start()
    {
        trigger_ref = new Ref_Bool();

        req_shutdown_ref = new Ref_Bool();



        //   g_sample = new GameStartAt();


        // Custom callback logging setup from dll to unity
        MyDelegate callback_delegate = new MyDelegate(CallBackFunction);

        // Convert callback_delegate into a function pointer that can be
        // used in unmanaged code.
        IntPtr intptr_delegate = Marshal.GetFunctionPointerForDelegate(callback_delegate);

        // Call the API passing along the function pointer.
        SetDebugFunction(intptr_delegate);



        /////////////
        //Custom callback of getting the integer value x from dll

        test_callback =
            (value) =>
        {
            //Console.WriteLine("Progress = {0}", value);

            Debug.Log("Update from UpdateCallBack = " + value);
        };



        vrsenal_update_callback = (j_lower_left, j_lower_right, j_upper_left, j_upper_right, trigger, startAt, req_shutdown) =>
        {
            //Console.WriteLine("Progress = {0}", value);

            // if(value!="")
            Debug.Log("Update from VrsenalCallBack = ");
        };



        // call DoWork in C code
        //DoWork(test_callback);
        //////////////////



        //VRSENAL RUMBLEON EVENT WITH INPUT PARAMETER
        VRsenal_RumbleOn();



        //VRSENAL HAPTIC EVENT WITH INPUT PARAMETER
        VRsenal_HapticEvent("h");



        VRsenal_GameContinue();


        VRsenal_RumbleOff();


        VRsenal_InitHaptic("x");


        VRsenal_Shutdown();


        VRsenal_DisconnectFromBluetooth();



        VRsenal_CloseCOMPort();



        VRsenal_MatchEnd(5, false, "y");



        VRsenal_HapticEvent("z");



        //    VRsenal_Update(ref lowerleft, ref lowerright, ref upperleft, ref upperright, ref trigger_ref.val, ref startAt_ref, ref req_shutdown_ref.val);
    }