Пример #1
0
            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);
            }
Пример #2
0
            bool IFilterInstance.CheckFilterIn(NGSpotlightWindow window, IDrawableElement element)
            {
                IHasGameObject hasGameObject = element as IHasGameObject;

                return(hasGameObject != null && hasGameObject.GameObject != null && hasGameObject.GameObject.GetComponent(this.type) != null);
            }