Esempio n. 1
0
 public virtual bool ShouldIgnoreSprite(GameObject instance, Sprite sprite)
 {
     return(!instance.activeInHierarchy || !sprite ||
            (outlineSpriteRenderer && (sprite == outlineSpriteRenderer.sprite || !instance.GetComponent <SpriteRenderer> ().enabled)) ||
            (outlineImage && (sprite == outlineImage.sprite || !instance.GetComponent <Image> ().enabled)) ||
            (instance != gameObject && (!LayerMaskExt.ContainsLayer(childLayers, instance.layer) || System.Array.IndexOf(ignoreChildNames, instance.name) > -1)));
 }
Esempio n. 2
0
 public virtual bool ShouldIgnoreSprite(SpriteRenderer sprite)
 {
     return(!sprite.gameObject.activeInHierarchy || !sprite.enabled || !sprite.sprite || sprite == outlineSprite ||
            (sprite.gameObject != gameObject && (!LayerMaskExt.ContainsLayer(childLayers, sprite.gameObject.layer) || System.Array.IndexOf(ignoreChildNames, sprite.name) > -1)));
 }
Esempio n. 3
0
 public virtual bool ShouldIgnoreSprite(SpriteRenderer sprite)
 {
     return(!sprite.enabled || sprite == outlineSprite || (sprite.gameObject != gameObject && !LayerMaskExt.ContainsLayer(childLayers, sprite.gameObject.layer)));
 }