//开始 public void start() { N = 1; isEnable = true; if (srcUI == null) { TH.add(this); } }
public UIElement srcUI = null; //源UI对象,可以为空,如果为耗时操作,则应该置为空 public ThreadProperty(ulong time, bool isOnce, bool isEnable, Action action, UIElement srcUI) { n = time / 50; if (n < 1) { n = 1; } this.isOnce = isOnce; this.isEnable = isEnable; this.action = action; this.srcUI = srcUI; TH.add(this); }