Example #1
0
    // 设置是否可以自动锁屏
    public static void SetScreenCanAutoLock(bool bCanLock)
    {
#if  UNITY_WP8 && !UNITY_EDITOR
#elif UNITY_ANDROID && !UNITY_EDITOR
        AndroidHelper.platformHelper("setScreenCanAutoLock", bCanLock.ToString());
#elif UNITY_IPHONE && !UNITY_EDITOR
        IOSHelper.Common_SetScreenCanAutoLock(bCanLock);
#else
#endif
    }