浏览代码

Merge branch 'foundation' into yczhang

/main
Yuncong Zhang 5 年前
当前提交
12f03162
共有 3 个文件被更改,包括 18 次插入12 次删除
  1. 20
      Runtime/foundation/change_notifier.cs
  2. 7
      Runtime/foundation/constants.cs
  3. 3
      Runtime/foundation/constants.cs.meta

20
Runtime/foundation/change_notifier.cs


}
}
class _MergingListenable : ChangeNotifier {
class _MergingListenable : Listenable {
foreach (Listenable child in _children) {
if (child != null) {
child.addListener(this.notifyListeners);
}
}
public override void dispose() {
public void addListener(VoidCallback listener) {
if (child != null) {
child.removeListener(this.notifyListeners);
}
child?.addListener(listener);
}
base.dispose();
public void removeListener(VoidCallback listener) {
foreach (Listenable child in this._children) {
child?.removeListener(listener);
}
}
public override string ToString() {

7
Runtime/foundation/constants.cs


using UnityEngine;
namespace Unity.UIWidgets.foundation {
public class FoundationConstants {
public bool kReleaseMode = !Debug.isDebugBuild;
}
}

3
Runtime/foundation/constants.cs.meta


fileFormatVersion: 2
guid: 36d19e17f3d947f98c7accec2cd5771b
timeCreated: 1556097117
正在加载...
取消
保存