using System; using System.Reflection; using UnityEngine.Scripting; using UnityEngineInternal; namespace UnityEngine.Events { // Token: 0x02000482 RID: 1154 [Serializable] public class UnityEvent : UnityEventBase { // Token: 0x060039E1 RID: 14817 RVA: 0x00065180 File Offset: 0x00063380 [RequiredByNativeCode] public UnityEvent() { } // Token: 0x060039E2 RID: 14818 RVA: 0x00065198 File Offset: 0x00063398 public void AddListener(UnityAction call) { base.AddCall(UnityEvent.GetDelegate(call)); } // Token: 0x060039E3 RID: 14819 RVA: 0x000651A8 File Offset: 0x000633A8 public void RemoveListener(UnityAction call) { base.RemoveListener(call.Target, call.GetMethodInfo()); } // Token: 0x060039E4 RID: 14820 RVA: 0x000651C0 File Offset: 0x000633C0 protected override MethodInfo FindMethod_Impl(string name, object targetObj) { return UnityEventBase.GetValidMethodInfo(targetObj, name, new Type[0]); } // Token: 0x060039E5 RID: 14821 RVA: 0x000651E4 File Offset: 0x000633E4 internal override BaseInvokableCall GetDelegate(object target, MethodInfo theFunction) { return new InvokableCall(target, theFunction); } // Token: 0x060039E6 RID: 14822 RVA: 0x00065200 File Offset: 0x00063400 private static BaseInvokableCall GetDelegate(UnityAction action) { return new InvokableCall(action); } // Token: 0x060039E7 RID: 14823 RVA: 0x0006521C File Offset: 0x0006341C public void Invoke() { base.Invoke(this.m_InvokeArray); } // Token: 0x04001192 RID: 4498 private readonly object[] m_InvokeArray = new object[0]; } }