Esempio n. 1
0
 /// <summary>
 /// Highlights the entity.
 /// </summary>
 public void Select()
 {
     Effect = Engine2D.SpawnEntity(new Entity2DRenderableBaseCircleProperty()
     {
         Radius        = UnitSize * 0.75f,
         CircleTexture = Entity.Engine.Textures.White,
         RenderAt      = Entity.LastKnownPosition - new Location(0, 0, 5),
         CastShadows   = false
     });
     Entity.OnPositionChanged += PositionChanged;
 }