예제 #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;
        }