if (!mi.IsPublic) {
System.Object[] nguiEventMethods
= mi
.GetCustomAttributes(typeof(NGUIEvent
),
false); bool hasAttribute = false;
if (nguiEventMethods.Length > 0) {
foreach (var nguiEventMethod in nguiEventMethods) {
if (nguiEventMethod
.GetType() == typeof(NGUIEvent
)) { hasAttribute = true;
}
}
}
if (!hasAttribute) continue;
}