コード例 #1
0
    public void Init()
    {
        //イベント処理
        _mainModel.Score
        .Subscribe(_ =>
        {
            _scoreView.OnScoreChaged(_mainModel.Score.Value);
            _judgView.JudgText(_mainModel.Judg());
        });


        _upView.OnClick
        .Subscribe(_ => _mainModel.AddScore(1));

        _downView.OnClick
        .Subscribe(_ => _mainModel.SubScore(1));


        _playerItemView.OnTrEnter
        .Subscribe(_ => _mainModel.AddScore(1));
    }