/// <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; }
/// <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; }
/// <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; } }
/// <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; } }
internal static void ResetInstance() { s_Instance = null; }