Пример #1
0
    // Token: 0x06001A2E RID: 6702 RVA: 0x00065958 File Offset: 0x00063B58
    public static bool QueueOrExecute(global::IInterpTimedEventReceiver receiver, bool immediate, string tag, ref uLink.NetworkMessageInfo info, params object[] args)
    {
        MonoBehaviour            receiver2        = receiver as MonoBehaviour;
        global::InterpTimedEvent interpTimedEvent = global::InterpTimedEvent.New(receiver2, tag, ref info, args, immediate);

        if (interpTimedEvent == null)
        {
            return(false);
        }
        if (immediate)
        {
            global::InterpTimedEvent.InvokeDirect(interpTimedEvent);
        }
        else if (!global::InterpTimedEventSyncronizer.available)
        {
            Debug.LogWarning("Not running event because theres no syncronizer available. " + tag, receiver as Object);
            return(false);
        }
        return(true);
    }
Пример #2
0
    // Token: 0x06001A20 RID: 6688 RVA: 0x00065654 File Offset: 0x00063854
    private static void Invoke()
    {
        MonoBehaviour monoBehaviour = global::InterpTimedEvent.current.component;

        if (monoBehaviour)
        {
            global::IInterpTimedEventReceiver interpTimedEventReceiver = monoBehaviour as global::IInterpTimedEventReceiver;
            try
            {
                interpTimedEventReceiver.OnInterpTimedEvent();
            }
            catch (Exception arg)
            {
                Debug.LogError("Exception thrown during catchup \r\n" + arg, monoBehaviour);
            }
        }
        else
        {
            Debug.LogWarning("A component implementing IInterpTimeEventReceiver was destroyed without properly calling InterpEvent.Remove() in OnDestroy!\r\n" + ((!string.IsNullOrEmpty(global::InterpTimedEvent.current.tag)) ? ("The tag was \"" + global::InterpTimedEvent.current.tag + "\"") : "There was no tag set"));
        }
        global::InterpTimedEvent.current.Dispose();
    }
Пример #3
0
 // Token: 0x06001A2D RID: 6701 RVA: 0x00065948 File Offset: 0x00063B48
 public static bool QueueOrExecute(global::IInterpTimedEventReceiver receiver, bool immediate, string tag, ref uLink.NetworkMessageInfo info)
 {
     return(global::InterpTimedEvent.QueueOrExecute(receiver, immediate, tag, ref info, global::InterpTimedEvent.emptyArgs));
 }
Пример #4
0
 // Token: 0x06001A2C RID: 6700 RVA: 0x0006593C File Offset: 0x00063B3C
 public static bool Execute(global::IInterpTimedEventReceiver receiver, string tag, ref uLink.NetworkMessageInfo info, params object[] args)
 {
     return(global::InterpTimedEvent.QueueOrExecute(receiver, true, tag, ref info, args));
 }