Example #1
0
        public static T FindInterface <T>(IntPtr native) where T : class, IInterface
        {
            UObject obj = Find(native);

            if (obj != null)
            {
                return(obj.GetInterface <T>());
            }
            return(null);
        }
Example #2
0
        /// <summary>
        /// Returns the interface
        /// </summary>
        public T GetInterface <T>() where T : class, IInterface
        {
            UObject obj = GetObject();

            if (obj != null)
            {
                return(obj.GetInterface <T>());
            }
            return(null);
        }