bool IFilterInstance.CheckFilterIn(NGSpotlightWindow window, IDrawableElement element) { IHasGameObject hasGameObject = element as IHasGameObject; try { return(hasGameObject != null && hasGameObject.GameObject != null && hasGameObject.GameObject.CompareTag(this.tag) == true); } catch { // In case tags are programmatically changed... We never know. } return(false); }
bool IFilterInstance.CheckFilterIn(NGSpotlightWindow window, IDrawableElement element) { IHasGameObject hasGameObject = element as IHasGameObject; return(hasGameObject != null && hasGameObject.GameObject != null && hasGameObject.GameObject.GetComponent(this.type) != null); }