Esempio n. 1
0
        void OnStart()
        {
            var model = MVCWithIOCConfig.GetModel <MVCWithIOCModel>();

            model.Count.BindWithInitialValue(count => Text.text = count.ToString()).AddTo(gameObject);

            Button.OnClickAsObservable().Subscribe(_ => { model.Count.Value++; });
        }
Esempio n. 2
0
        void OnStart()
        {
            // Code Here


            var model = MVCWithIOCConfig.GetModel <MVCWithIOCModel>();

            model.Count.BindWithInitialValue(count => Text.text = count.ToString()).AddTo(gameObject);
        }