Ejemplo n.º 1
0
        void eventHandler_In(int dataId)
        { //float arg1, float arg2) {
            UnityEventData eventData = VRsqr_EventsManager.GetEventData(dataId);

            data1 = eventData.dataArgs[0];
            data2 = eventData.dataArgs[1];

            VRsqr_EventsManager.TriggerEvent(someEvent_Out, data1 * data2, data1 / data2);
        }
Ejemplo n.º 2
0
        void dataEventHandler(int EventContext)
        {
            VRsqrUtil.Debug.Log(LogLevel.Debug, "============= dataEventHandler");

            if (saveData)
            {
                UnityEventData eventData = VRsqr_EventsManager.GetEventData(EventContext);
                dataSave(eventData.eventName, eventData.eventParams, eventData.eventInTimeStamp, eventData.eventOutTimeStamp);
            }
        }
Ejemplo n.º 3
0
    public void eventHandler(int EventContext)
    {
        UnityEventData eventData = VRsqr_EventsManager.GetEventData(EventContext);

        foreach (StringMapping paramMapping in ParamNameConnect)
        {
            EventParam paramData = VRsqr_EventsManager.GetEventParam(eventData, paramMapping.From);
            if (paramData != null && !String.IsNullOrEmpty(paramMapping.To))
            {
                EventParam newParamData = paramData;
                newParamData.NameString = paramMapping.To;
                EventParamsTo.Add(newParamData);
                VRsqrUtil.Debug.Log(LogLevel.Debug, "VRsqr_EventsConnector:eventHandler - newParamData = " + newParamData);
            }
        }

        EventNameConnect.To = (!String.IsNullOrEmpty(EventNameConnect.To) ? EventNameConnect.To : EventNameConnect.From);

        VRsqr_EventsManager.TriggerDataEvent(EventNameConnect.To, EventParamsTo.ToArray());
    }