public void Invoke() { if (invokable == null) { Cache(); } if (_dynamic) { InvokableEvent call = invokable as InvokableEvent; call.Invoke(); } else { invokable.Invoke(Args); } }
public void Invoke() { if (Invokable == null) { Cache(); } if (m_Dynamic) { InvokableEvent call = Invokable as InvokableEvent; call.Invoke(); } else { Invokable.Invoke(Arguments); } }
protected override void Cache() { if (_target == null || string.IsNullOrEmpty(_methodName)) { invokable = new InvokableEvent(null, null); } else { if (_dynamic) { invokable = new InvokableEvent(target, methodName); } else { invokable = GetPersistentMethod(); } } }
protected override void Cache() { if (m_Target == null || string.IsNullOrEmpty(m_MethodName)) { Invokable = new InvokableEvent(null, null); } else { if (m_Dynamic) { Invokable = new InvokableEvent(Target, MethodName); } else { Invokable = GetPersistentMethod(); } } }