对一个数值进行监听
声明变量的时候这样声明
public ReactiveProperty<int> Age=new ReactiveProperty<int>(0);
Age.Subscribe(age=>{Debug.Log(age)});
对一个数值进行监听
声明变量的时候这样声明
public ReactiveProperty<int> Age=new ReactiveProperty<int>(0);
Age.Subscribe(age=>{Debug.Log(age)});