Ejemplo n.º 1
0
    void emitVRActionVector1Change(SteamVR_Action_Single action, float value)
    {
        if (ClientManager.instance.state != BaseNetworking.componentState.RUNNING || ClientManager.instance.workerClient == null)
        {
            return;
        }
        Debug.Log("sending vector1 of " + action.GetShortName() + "=" + value);

        VRActionVector1Message message = new VRActionVector1Message();

        message.actionName = action.GetShortName();
        message.value      = value;
        ClientManager.instance.workerClient.sendMessage(message);
    }