示例#1
0
        void OnDestroy()
        {
            base.Deinit();

#if UNITY_ANDROID
            androidEngine = null;
#endif
        }
示例#2
0
        void Awake()
        {
            base.Init();

#if UNITY_ANDROID
            androidEngine = new AndroidEngine();
#endif

#if UNITY_EDITOR
            // Find arsdk_version.txt
            // if not exist file create file and write arsdk version
            // if file exist write
            System.IO.File.WriteAllText(System.IO.Path.Combine(Application.streamingAssetsPath, "arsdk_version.txt"), MaxstAR.GetVersion());
#endif
        }
示例#3
0
        void Awake()
        {
            base.Init();

#if UNITY_ANDROID
            androidEngine = new AndroidEngine();
#elif UNITY_IOS
            string licenseKey = ConfigurationScriptableObject.GetInstance().LicenseKey;
            NativeAPI.init(licenseKey);
#endif

#if UNITY_EDITOR
            // Find arsdk_version.txt
            // if not exist file create file and write arsdk version
            // if file exist write
            System.IO.File.WriteAllText(System.IO.Path.Combine(Application.streamingAssetsPath, "arsdk_version.txt"), MaxstAR.GetVersion());
#endif
        }