protected void SetControlViewMode(UIControlBase control, bool overlay) { if (!m_ControlSibiling.ContainsKey(control)) { Debug.LogError("?"); return; } TCommonUI.ReparentRestretchUI(control.rectTransform, overlay ? tf_OverlayControl : tf_CameraControl); control.transform.SetSiblingIndex(m_ControlSibiling[control]); }
protected void SetPageViewMode(UIPageBase page, bool overlay) => TCommonUI.ReparentRestretchUI(page.rectTransform, overlay ? tf_OverlayPage : tf_CameraPage);