public MinimapIcon(Body parent, ImageFrame icon) : base("Icon", parent, Matrix.Identity, Vector3.One, Vector3.Zero) { Icon = icon; IconScale = 1.0f; AddToCollisionManager = false; FrustrumCull = false; IsVisible = false; GameObjectCaching.AddMinimapIcon(this); }
public void OnDeserialize(StreamingContext context) { GameObjectCaching.AddMinimapIcon(this); }