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); } }
public GOCompositeFilter WithCustomComponentFunc(CastableFunc <Component, bool> inCustom) { ComponentFunc = inCustom; return(this); }
public GOCompositeFilter WithCustomFunc(CastableFunc <GameObject, bool> inCustom) { CustomFunc = inCustom; return(this); }