Exemplo n.º 1
0
    // Token: 0x06003A75 RID: 14965 RVA: 0x00127458 File Offset: 0x00125858
    public static void Broadcast <T, U, V>(string eventType, T arg1, U arg2, V arg3)
    {
        OVRMessenger.OnBroadcasting(eventType);
        Delegate @delegate;

        if (OVRMessenger.eventTable.TryGetValue(eventType, out @delegate))
        {
            OVRCallback <T, U, V> ovrcallback = @delegate as OVRCallback <T, U, V>;
            if (ovrcallback == null)
            {
                throw OVRMessenger.CreateBroadcastSignatureException(eventType);
            }
            ovrcallback(arg1, arg2, arg3);
        }
    }
Exemplo n.º 2
0
    // Token: 0x06003A72 RID: 14962 RVA: 0x00127384 File Offset: 0x00125784
    public static void Broadcast(string eventType)
    {
        OVRMessenger.OnBroadcasting(eventType);
        Delegate @delegate;

        if (OVRMessenger.eventTable.TryGetValue(eventType, out @delegate))
        {
            OVRCallback ovrcallback = @delegate as OVRCallback;
            if (ovrcallback == null)
            {
                throw OVRMessenger.CreateBroadcastSignatureException(eventType);
            }
            ovrcallback();
        }
    }