/// <summary> /// Construit un nouvel objet de la classe entité. La construction entraine l'ajoute /// de l'objet entité dans la scene /// </summary> public Entity(Entity parent = null) { m_components = new List <TComponent>(); layer_ = 0; transform_ = ( Transform )AddComponent(new Transform()); sons_ = new List <Entity>(); Scene.CurrentScene.Sons.Add(this); Parent = parent; show_ = true; GlowEffet = new GlowEffect(); IsPickingActivated = true; Name = "New Entity"; }
public void AddGlowEffect(Texture2D texture) { GlowEffet = new GlowEffect(texture); IsGlowing = true; }
public void AddGlowEffect(Vector4 color) { GlowEffet = new GlowEffect(color); IsGlowing = true; }