public void SetWndView(CanvasEnum type, bool b) { switch (type) { case CanvasEnum.ESceneItemCanvas: { if (null != SceneItemCanvas) { SceneItemCanvas.gameObject.SetActive(b); } } break; case CanvasEnum.ENormalWndCanvas: { if (null != tParentWnd) { tParentWnd.gameObject.SetActive(b); } } break; case CanvasEnum.EMenuWndCanvas: { if (null != tParentMenu) { tParentMenu.gameObject.SetActive(b); } } break; case CanvasEnum.EModelDialogCanvas: { if (null != tParentDialog) { tParentDialog.gameObject.SetActive(b); } } break; case CanvasEnum.EAll: { SetWndView(CanvasEnum.ESceneItemCanvas, b); SetWndView(CanvasEnum.ENormalWndCanvas, b); SetWndView(CanvasEnum.EMenuWndCanvas, b); SetWndView(CanvasEnum.EModelDialogCanvas, b); } break; default: break; } }
public static void SetCanvasView(CanvasEnum eType, bool bShow) { g_uiNode.SetWndView(eType, bShow); }