示例#1
0
        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);
        }
示例#2
0
 public void OnDeserialize(StreamingContext context)
 {
     GameObjectCaching.AddMinimapIcon(this);
 }