void onEntityChanged(Entity e, int index, IComponent component)
 {
     if (!e.HasComponent(_debugIndex)) {
         DestroyBehaviour();
     } else {
         updateName();
     }
 }
		public override bool Matches(Entity entity)
		{
			for (int i = 0, indicesLength = indices.Length; i < indicesLength; i++)
			{
				if (entity.HasComponent(indices[i]))
				{
					return false;
				}
			}

			return true;
		}
        public override bool Matches(Entity entity)
        {
            for (int i = 0, indicesLength = indices.Length; i < indicesLength; i++)
            {
                if (entity.HasComponent(indices[i]))
                {
                    return(false);
                }
            }

            return(true);
        }