コード例 #1
0
ファイル: MenuScene.cs プロジェクト: Gangrad/FPS_prototype
        public void Setup(MenuService service)
        {
            var settings = new MenuSettings {
                Start       = service.StartGame,
                ShowOptions = service.ShowOptions,
                Quit        = service.Quit
            };

            _components.Setup(settings);
        }
コード例 #2
0
 public void Setup(MenuSettings settings)
 {
     _startButton.SetOnClickAction(settings.Start);
     _optionsButton.SetOnClickAction(settings.ShowOptions);
     _quitButton.SetOnClickAction(settings.Quit);
 }