Ejemplo n.º 1
0
 public System.Action <T> SetState <T>(System.Action <T> update) =>
 (state) =>
 {
     update(state);
     var newTree = this.renderFunc();
     var patches = Diff.Calc(this.oldTree, newTree);
     this.rootObj = Patch.Apply(this.rootObj, this.oldTree, patches, this.isUGUI);
 };