public override void UnloadContent() { base.UnloadContent(); if (AttachedPathingNode != null) { AttachedPathingNode.UnloadContent(); } }
public override void LoadContent() { CustomEffect = GameScreen.Content.Load <Effect>("SpriteShader"); if (Texture == null) { Texture = Utilitys.TextureFromFile(Globals.Game.GraphicsDevice, Globals.GetDestinationTexturePath(AssetName)); } BoundingBoxRenderer = new BoundingBoxRenderer(Game); BoundingBoxRenderer.Initialize(); if (AttachedPathingNode != null) { AttachedPathingNode.Initialize(); } base.LoadContent(); }