//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); }
//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); }