public virtual void OnShow(bool b) { if (SelfControl.IsShow) { if (SelfControl.IsActiveByShow) { SelfControl.SetActive(true); } } }
public void Add(UControl control) { if (control.PMutexer != null) { CLog.Error("item:{0} 已经被挂在某个Mutexer下面", control.GOName); return; } control.PMutexer = this; Controls.Add(control); control.SetActive(true); }