public override void ApplyModifier(GameObject avatar)
    {
        AvatarVisibility avatarVisibility = avatar.GetComponent <AvatarVisibility>();

        if (avatarVisibility != null)
        {
            avatarVisibility.SetVisibility(HIDE_AVATARS_MODIFIER, false);
        }
    }
 protected void SetUp()
 {
     // Prepare both game objects
     parentGameObject  = new GameObject();
     visibility        = parentGameObject.AddComponent <AvatarVisibility>();
     toggledGameObject = new GameObject();
     toggledGameObject.transform.parent = parentGameObject.transform;
     visibility.gameObjectsToToggle     = new[] { toggledGameObject };
 }