public void Initialize(ContentManager content) { _world.Initialize(content); _blobMenu = new InteractionMenu(_blobMenuOptions, content); //give the heros there onclick interaction with the interactionMenu foreach(var blob in _world.GetBlobs()) { blob.OnClickEvent += PlayerInteraction; } _blobMenu.OnClickEvent += MenuInteraction; }
public void Initialize(ContentManager content) { _world.Initialize(content); _playerMenu = new InteractionMenu(_playerMenuOptions, content); //give the heros there onclick interaction with the interactionMenu foreach(var hero in _world.GetPlayerHeroes()) { hero.OnClickEvent += PlayerInteraction; } _playerMenu.OnClickEvent += MenuInteraction; }