Пример #1
0
        //private Button _playBtn;

        //private Button _quitBtn;

        public override void OnRegister()
        {
            Debug.Log("OnRegister: " + this);
            _viewComp = GetView() as MainMenuView;
            _viewComp.playBtn.GetComponent <Button>().onClick.AddListener(PlayBtnOnClick);

            _viewComp.quitBtn.GetComponent <Button>().onClick.AddListener(QuitBtnOnClick);
        }
Пример #2
0
        //private Button _playBtn;

        //private Button _quitBtn;

        public override void OnRegister()
        {
            Debug.Log("OnRegister: " + this);
            _viewComp = GetView() as MainMenuView;
            _viewComp.playBtn.GetComponent<Button>().onClick.AddListener(PlayBtnOnClick);

            _viewComp.quitBtn.GetComponent<Button>().onClick.AddListener(QuitBtnOnClick);
        }