Ejemplo n.º 1
0
        /// <summary>
        /// Force reset the singleton instance to null. Should only be used in Unit Test.
        /// </summary>
        internal static void ResetInstance()
        {
            if (s_Instance != null)
            {
                if (Application.platform == RuntimePlatform.IPhonePlayer)
                {
                    ARCoreIOSLifecycleManager.ResetInstance();
                }
                else
                {
                    ARCoreAndroidLifecycleManager.ResetInstance();
                }

                s_Instance = null;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Force reset the singleton instance to null. Should only be used in Unit Test.
        /// </summary>
        internal static void ResetInstance()
        {
            if (_instance != null)
            {
                if (_instance is ARCoreAndroidLifecycleManager)
                {
                    ARCoreAndroidLifecycleManager.ResetInstance();
                }
#if UNITY_IOS
                else if (_instance is ARCoreIOSLifecycleManager)
                {
                    ARCoreIOSLifecycleManager.ResetInstance();
                }
#endif
                _instance = null;
            }
        }