예제 #1
0
        public static bool HasUnityEvent(PlayerEvent targetEvent, string HasMethodName, UnityEngine.Object hasTarget)
        {
            int count = targetEvent.GetPersistentEventCount();

            for (int i = 0; i < count; i++)
            {
                if (targetEvent.GetPersistentMethodName(i) == HasMethodName && targetEvent.GetPersistentTarget(i) == hasTarget)
                {
                    return(true);
                }
            }
            return(false);
        }