void Start() { mConfig = DataManager.Instance.Init(); //是否开启无边框模式 if (mConfig.IsNoBorderMode) { Screen.SetResolution(mConfig.ScreenWidth, mConfig.ScreenHight, FullScreenMode.Windowed); StartCoroutine(WindowsUtil.Setposition(0, 0, mConfig.ScreenWidth, mConfig.ScreenHight)); } else { Screen.SetResolution(mConfig.ScreenWidth, mConfig.ScreenHight, mConfig.ScreenMode); } UIMgr.SetResolution(mConfig.ScreenWidth, mConfig.ScreenHight, 0); InitVideoCanvas(); //InitKinect(); GeometricRectificationMode(); UIMgr.OpenPanel <UIMainPanel>(); #if !UNITY_EDITOR Cursor.visible = mConfig.IsCursorVisible; #endif }