/// <summary> /// Create and configure the <see cref="ProfileContainer"/> during the build. /// </summary> static void InjectProfileContainer(Scene scene) { ProfileContainer.Instance = null; if (!includesAnyOption) { return; } if (!OptionHelper.IsFirstScene(scene)) { return; } var go = new GameObject("Trimmer"); var container = go.AddComponent <ProfileContainer>(); ProfileContainer.Instance = container; container.store = GetCurrentEditProfile().Store; }