コード例 #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 && s_Instance.OnResetInstance != null)
            {
                s_Instance.OnResetInstance();
            }

            s_Instance = null;
        }
コード例 #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 && _instance.OnResetInstance != null)
            {
                _instance.OnResetInstance();
            }

            _instance = null;
        }
コード例 #3
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;
            }
        }
コード例 #4
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;
            }
        }
コード例 #5
0
 internal static void ResetInstance()
 {
     s_Instance = null;
 }