private void SetUIRootParent(GameObject uiRoot, UIShowPos type) { Transform Parent = null; if (type == UIShowPos.Normal) { Parent = normalUI; } else if (type == UIShowPos.TipTop) { Parent = tiptopUI; } else { Parent = hideUI; } uiRoot.transform.SetParent(Parent); uiRoot.transform.localPosition = Vector3.zero; uiRoot.transform.localScale = Vector3.one; uiRoot.transform.localRotation = Quaternion.identity; }
public UIContext(UIManager uiMrg, UIShowPos showps) { _uiMrg = uiMrg; _showPos = showps; }