Example #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();
        }
Example #2
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
        }