示例#1
0
        public void Bind(TDelegate evnt)
        {
            IntPtr  functionAddress;
            UObject target;

            if (GetFunctionAddress(evnt, out functionAddress, out target))
            {
                Bind(target, NativeReflection.GetFName(functionAddress));
            }
            else
            {
                OnInvalidDelegate(evnt);
            }
        }
示例#2
0
        public bool IsTargetBound(TDelegate evnt)
        {
            IntPtr  functionAddress;
            UObject target;

            if (GetFunctionAddress(evnt, out functionAddress, out target))
            {
                return(IsTargetBound(target, NativeReflection.GetFName(functionAddress)));
            }
            else
            {
                OnInvalidDelegate(evnt);
            }
            return(false);
        }