Esempio n. 1
0
        /// <summary>
        /// 初始化UI布局
        /// </summary>
        /// <param name="uiRoot"></param>
        public static void Initial(Transform uiRoot)
        {
            ThreadMission.SetMianId();
#if UNITY_STANDALONE_WIN || UNITY_EDITOR
            IME.Initial();
#endif
            UIRoot = uiRoot;
            CreateUI();
        }
Esempio n. 2
0
        /// <summary>
        /// 释放资源:包含ThreadMission,RecordManager,ElementAsset,AssetBundle
        /// </summary>
        public static void Dispose()
        {
            ThreadMission.DisposeAll();
            RecordManager.ReleaseAll();
            ElementAsset.bundles.Clear();
            AssetBundle.UnloadAllAssetBundles(true);
#if UNITY_STANDALONE_WIN || UNITY_EDITOR
            IME.Dispose();
#endif
        }
Esempio n. 3
0
        public static void Initial()
        {
            var pro = Process.GetCurrentProcess();

            iME = new IME();
            mainWindowHandle = iME.GetMainWindowHandle(pro.Id);
            hIMC             = ImmGetContext(mainWindowHandle);
            //using (ProcessModule curModule = pro.MainModule)
            //{
            //    _hookID = SetWindowsHookEx(WH_KEYBOARD_LL, HookCallback, GetModuleHandle(curModule.ModuleName), 0);
            //}
        }
Esempio n. 4
0
 static void Initial()
 {
     if (Application.platform == RuntimePlatform.Android | Application.platform == RuntimePlatform.IPhonePlayer)
     {
         UserAction.inputType = UserAction.InputType.OnlyTouch;
     }
     else
     {
         UserAction.inputType = UserAction.InputType.Blend;
     }
     if (Application.platform == RuntimePlatform.WindowsEditor | Application.platform == RuntimePlatform.WindowsPlayer)
     {
         IME.Initial();
     }
 }
        static void InitialInput()
        {
#if UNITY_STANDALONE_WIN || UNITY_EDITOR
            IME.Initial();
#endif
        }