protected void SetPanetByLayerType(MUILayerType layerType) { switch (m_uiLayerType) { case MUILayerType.Top: m_uiGameObject.transform.SetParent(MUIManager.singleton.MTransTop); break; case MUILayerType.Up: m_uiGameObject.transform.SetParent(MUIManager.singleton.MTransUpper); break; case MUILayerType.Normal: m_uiGameObject.transform.SetParent(MUIManager.singleton.MTransNormal); break; case MUILayerType.Hud: m_uiGameObject.transform.SetParent(MUIManager.singleton.MTransHUD); break; } }
protected MUIBase(string uiName, MUILayerType layerType, MUILoadType loadType = MUILoadType.SyncLoad) { UIName = uiName; m_uiLayerType = layerType; m_uiLoadType = loadType; }