scripts
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using UnityEngineInternal;
|
||||
|
||||
namespace UnityEngine.Events
|
||||
{
|
||||
// Token: 0x02000476 RID: 1142
|
||||
internal class InvokableCall : BaseInvokableCall
|
||||
{
|
||||
// Token: 0x06003982 RID: 14722 RVA: 0x00063EC0 File Offset: 0x000620C0
|
||||
public InvokableCall(object target, MethodInfo theFunction)
|
||||
: base(target, theFunction)
|
||||
{
|
||||
this.Delegate += (UnityAction)theFunction.CreateDelegate(typeof(UnityAction), target);
|
||||
}
|
||||
|
||||
// Token: 0x06003983 RID: 14723 RVA: 0x00063EE8 File Offset: 0x000620E8
|
||||
public InvokableCall(UnityAction action)
|
||||
{
|
||||
this.Delegate += action;
|
||||
}
|
||||
|
||||
// Token: 0x1400002C RID: 44
|
||||
// (add) Token: 0x06003984 RID: 14724 RVA: 0x00063EF8 File Offset: 0x000620F8
|
||||
// (remove) Token: 0x06003985 RID: 14725 RVA: 0x00063F30 File Offset: 0x00062130
|
||||
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
private event UnityAction Delegate;
|
||||
|
||||
// Token: 0x06003986 RID: 14726 RVA: 0x00063F68 File Offset: 0x00062168
|
||||
public override void Invoke(object[] args)
|
||||
{
|
||||
if (BaseInvokableCall.AllowInvoke(this.Delegate))
|
||||
{
|
||||
this.Delegate();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003987 RID: 14727 RVA: 0x00063F88 File Offset: 0x00062188
|
||||
public override bool Find(object targetObj, MethodInfo method)
|
||||
{
|
||||
return this.Delegate.Target == targetObj && this.Delegate.GetMethodInfo().Equals(method);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user