示例#1
0
文件: GameScreen.cs 项目: zidsal/Blob
        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;
        }
示例#2
0
文件: GameScreen.cs 项目: zidsal/game
        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;
        }