コード例 #1
0
        /// <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;
        }