Пример #1
0
        /* Setter & Getter */

        private void SetPlatformType(JCS_PlatformType pt)
        {
            if (SIMULATE_PLATFORM_TYPE)
            {
                return;
            }

            PLATFORM_TYPE = pt;
        }
Пример #2
0
        private void Awake()
        {
            instance = this;

            mSystemLanguage = (mSimulateSystemLanguage) ? mSimulateLanguage : Application.systemLanguage;

#if (UNITY_EDITOR || UNITY_STANDALONE)
            // set platform type
            PlatformType = JCS_PlatformType.PC;
#elif (UNITY_ANDROID || UNITY_IPHIONE || UNITY_IOS)
            // set platform type
            PlatformType = JCS_PlatformType.MOBILE;

            // set the sleep time to never
            Screen.sleepTimeout = SleepTimeout.NeverSleep;
#endif

            // done initialize the application layer.
            APP_INITIALIZING = false;
        }