示例#1
0
        public bool Equals(CastableFunc <TInput, TOutput> other)
        {
            if (m_Mode != other.m_Mode)
            {
                return(false);
            }

            switch (m_Mode)
            {
            case CallbackMode.NoArg:
                return(m_CallbackNoArgs == other.m_CallbackNoArgs);

            case CallbackMode.NativeArg:
                return(m_CallbackNativeArg == other.m_CallbackNativeArg);

            case CallbackMode.CastedArg:
                return(m_CallbackWithCastedArg.Equals(other.m_CallbackWithCastedArg));

            default:
                return(true);
            }
        }
示例#2
0
 public GOCompositeFilter WithCustomComponentFunc(CastableFunc <Component, bool> inCustom)
 {
     ComponentFunc = inCustom;
     return(this);
 }
示例#3
0
 public GOCompositeFilter WithCustomFunc(CastableFunc <GameObject, bool> inCustom)
 {
     CustomFunc = inCustom;
     return(this);
 }