public override void Initialize() { SpriteBatch = new SpriteBatch2D(); Menu = new UIMenu(); Menu.Load("MainMenu.xml", "Templates.xml"); Menu.AddUIEventHandler(this); }
// only called once ever public override void Initialize() { SpriteBatch = new SpriteBatch2D(); Font = AssetManager.LoadSpriteFont("LatoBlack.ttf"); }
public static void Render(Group group, SpriteBatch2D spriteBatch) { foreach (var entity in group.Entities) { ref var transform = ref entity.GetComponent <TransformComponent>(); ref var drawable = ref entity.GetComponent <DrawableComponent>();
public override void Initialize() { SpriteBatch = new SpriteBatch2D(); Menu = new UIMenu(); Menu.Load("Loading.xml", "Templates.xml"); }