Ejemplo n.º 1
0
        internal override void  Find(Type type, object instance, Match match, IMatchCounter matchCounter)
        {
            if (UnityEventBaseFinder.m_persistantCalls == null)
            {
                return;
            }

            IList l = (IList)UnityEventBaseFinder.PersistentCallGroup.GetValue(UnityEventBaseFinder.m_persistantCalls.GetValue(instance));

            for (int i = 0; i < l.Count; i++)
            {
                if ((UnityEngine.Object)UnityEventBaseFinder.PersistentCall.GetValue(l[i]) == this.window.TargetAsset)
                {
                    match.arrayIndexes.Add(i);
                    match.valid = true;
                }
            }

            matchCounter.AddPotentialMatchCounter(l.Count);
            if (match.valid == true)
            {
                matchCounter.AddEffectiveMatchCounter(match.arrayIndexes.Count);
            }
        }
Ejemplo n.º 2
0
 internal abstract void                                  Find(Type type, object instance, Match subMatch, IMatchCounter matchCounter);