Esempio n. 1
0
        void OnDestroy()
        {
            base.Deinit();

#if UNITY_ANDROID
            androidEngine = null;
#endif
        }
Esempio n. 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
        }
Esempio n. 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
        }