void onEntityChanged(Entity e, int index, IComponent component)
 {
     if (!e.HasComponent(_debugIndex)) {
         DestroyBehaviour();
     } else {
         updateName();
     }
 }
Ejemplo n.º 2
0
		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;
		}
Ejemplo n.º 3
0
        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);
        }