Skip to content

Commit

Permalink
Using != null for UnityEngine.Object
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Nov 23, 2022
1 parent e3dc6b7 commit 5bb576f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public static void LoadInstanceFromPreloadAssets()
var preloadAsset = UnityEditor.PlayerSettings.GetPreloadedAssets().FirstOrDefault(x => x is VContainerSettings);
if (preloadAsset is VContainerSettings instance)
{
instance.RootLifetimeScope?.DisposeCore();
if (instance.RootLifetimeScope != null)
instance.RootLifetimeScope.DisposeCore();
instance.OnEnable();
}
}
Expand Down

1 comment on commit 5bb576f

@vercel
Copy link

@vercel vercel bot commented on 5bb576f Nov 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.