/// <summary> /// Checks if the given sprite is already in the boneskin array property /// </summary> public bool ContainsSprite( Sprite s ) { foreach ( SpriteBoneSkin config in boneSkins ) { if( ( config.spriteAsset == null && s == null ) || ( config.spriteAsset != null && s != null && config.spriteAsset.GetInstanceID() == s.GetInstanceID() ) ) { return true; } } return false; }