private void Set(EventDelegate.Callback call)
{
if (call == null || !EventDelegate.IsValid(call))
{
this.mTarget = null;
this.mMethodName = null;
this.mCachedCallback = null;
this.mRawDelegate = false;
}
else
{
this.mTarget = (call.Target as MonoBehaviour);
if (this.mTarget == null)
{
this.mRawDelegate = true;
this.mCachedCallback = call;
this.mMethodName = null;
}
else
{
this.mMethodName = EventDelegate.GetMethodName(call);
this.mRawDelegate = false;
}
}
}