// Use this for initialization private void Start() { model = RootModelObject.GetComponent <RootModel>().Hoge; view = ViewObject.GetComponent <HogeUIView>(); view.Observable() .Subscribe(v => model.Value.Value = (int)v); model.Value .Subscribe(v => view.Value = v); }
private void Awake() { Hoge = new HogeModel(); }