private static void SetUICanvas2Ds() { UINodesManager.cs_NoEventsUIRoot = UINodesManager.NoEventsUIRoot.GetComponent <Canvas>(); if (UINodesManager.cs_NoEventsUIRoot != null) { UINodesManager.cs_NoEventsUIRoot.set_worldCamera(CamerasMgr.CameraUI); UINodesManager.cs_NoEventsUIRoot.get_gameObject().SetActive(true); UINodesManager.cs_NoEventsUIRoot.set_planeDistance(100f); UINodesManager.cs_NoEventsUIRoot.set_sortingOrder(1000); } CanvasScaler component = UINodesManager.NoEventsUIRoot.GetComponent <CanvasScaler>(); if (component != null) { component.set_screenMatchMode(UINodesManager.UIScreenMatchMode); } UINodesManager.cs_NormalUIRoot = UINodesManager.NormalUIRoot.GetComponent <Canvas>(); if (UINodesManager.cs_NormalUIRoot != null) { UINodesManager.cs_NormalUIRoot.get_gameObject().SetActive(true); UINodesManager.cs_NormalUIRoot.set_planeDistance(200f); UINodesManager.cs_NormalUIRoot.set_sortingOrder(2000); } CanvasScaler component2 = UINodesManager.NoEventsUIRoot.GetComponent <CanvasScaler>(); if (component2 != null) { component2.set_screenMatchMode(UINodesManager.UIScreenMatchMode); } UINodesManager.cs_MiddleUIRoot = UINodesManager.MiddleUIRoot.GetComponent <Canvas>(); if (UINodesManager.cs_MiddleUIRoot != null) { UINodesManager.cs_MiddleUIRoot.set_worldCamera(CamerasMgr.CameraUI); UINodesManager.cs_MiddleUIRoot.get_gameObject().SetActive(true); UINodesManager.cs_MiddleUIRoot.set_planeDistance(300f); UINodesManager.cs_MiddleUIRoot.set_sortingOrder(3000); } CanvasScaler component3 = UINodesManager.NoEventsUIRoot.GetComponent <CanvasScaler>(); if (component3 != null) { component3.set_screenMatchMode(UINodesManager.UIScreenMatchMode); } UINodesManager.cs_TopUIRoot = UINodesManager.TopUIRoot.GetComponent <Canvas>(); if (UINodesManager.cs_TopUIRoot != null) { UINodesManager.cs_TopUIRoot.set_worldCamera(CamerasMgr.CameraUI); UINodesManager.cs_TopUIRoot.get_gameObject().SetActive(true); UINodesManager.cs_TopUIRoot.set_planeDistance(400f); UINodesManager.cs_TopUIRoot.set_sortingOrder(14000); } CanvasScaler component4 = UINodesManager.NoEventsUIRoot.GetComponent <CanvasScaler>(); if (component4 != null) { component4.set_screenMatchMode(UINodesManager.UIScreenMatchMode); } UINodesManager.cs_T2RootOfSpecial = UINodesManager.T2RootOfSpecial.GetComponent <Canvas>(); if (UINodesManager.cs_T2RootOfSpecial != null) { UINodesManager.cs_T2RootOfSpecial.set_worldCamera(CamerasMgr.CameraUI); UINodesManager.cs_T2RootOfSpecial.get_gameObject().SetActive(true); UINodesManager.cs_T2RootOfSpecial.set_planeDistance(500f); UINodesManager.cs_T2RootOfSpecial.set_sortingOrder(15000); } CanvasScaler component5 = UINodesManager.NoEventsUIRoot.GetComponent <CanvasScaler>(); if (component5 != null) { component5.set_screenMatchMode(UINodesManager.UIScreenMatchMode); } UINodesManager.cs_T3RootOfSpecial = UINodesManager.T3RootOfSpecial.GetComponent <Canvas>(); if (UINodesManager.cs_T3RootOfSpecial != null) { UINodesManager.cs_T3RootOfSpecial.set_worldCamera(CamerasMgr.CameraUI); UINodesManager.cs_T3RootOfSpecial.get_gameObject().SetActive(true); UINodesManager.cs_T3RootOfSpecial.set_planeDistance(600f); UINodesManager.cs_T3RootOfSpecial.set_sortingOrder(16000); } CanvasScaler component6 = UINodesManager.NoEventsUIRoot.GetComponent <CanvasScaler>(); if (component6 != null) { component6.set_screenMatchMode(UINodesManager.UIScreenMatchMode); } UINodesManager.cs_T4RootOfSpecial = UINodesManager.T4RootOfSpecial.GetComponent <Canvas>(); if (UINodesManager.cs_T4RootOfSpecial != null) { UINodesManager.cs_T4RootOfSpecial.set_worldCamera(CamerasMgr.CameraUI); UINodesManager.cs_T4RootOfSpecial.get_gameObject().SetActive(true); UINodesManager.cs_T4RootOfSpecial.set_planeDistance(600f); UINodesManager.cs_T4RootOfSpecial.set_sortingOrder(17000); } CanvasScaler component7 = UINodesManager.NoEventsUIRoot.GetComponent <CanvasScaler>(); if (component7 != null) { component7.set_screenMatchMode(UINodesManager.UIScreenMatchMode); } }