Beispiel #1
0
        public static string UPvr_GetCountryCode()
        {
            string code = "";

#if ANDROID_DEVICE
            System.UPvr_CallStaticMethod <string>(ref code, Pvr_UnitySDKRender.javaVrActivityClass, "getCountryCode", UPvr_GetCurrentActivity());
#endif
            return(code);
        }
Beispiel #2
0
        public static string UPvr_GetDeviceSN()
        {
            string serialNum = "UNKONWN";

#if ANDROID_DEVICE
            System.UPvr_CallStaticMethod <string>(ref serialNum, Pvr_UnitySDKRender.javaSysActivityClass, "getDeviceSN");
#endif
            return(serialNum);
        }
Beispiel #3
0
        public static void UPvr_Sleep()
        {
#if ANDROID_DEVICE
            System.UPvr_CallStaticMethod(Pvr_UnitySDKRender.javaSysActivityClass, "Pvr_Sleep");
#endif
        }
Beispiel #4
0
        public static void UPvr_Reboot()
        {
#if ANDROID_DEVICE
            System.UPvr_CallStaticMethod(Pvr_UnitySDKRender.javaSysActivityClass, "Pvr_Reboot", UPvr_GetCurrentActivity());
#endif
        }