/// <summary>
        /// Start using shared settings from given context.
        /// </summary>
        /// <param name="context">The context supplying the new shared settings.</param>
        public void SetContext(WorldLockingContext context)
        {
            shared = context.SharedSettings;
            DiagnosticRecordings.SharedSettings = context.DiagnosticsSettings;

            if (!hasBeenStarted)
            {
                OneTimeStartUp();
            }

            ApplyNewSettings();
        }
        /// <summary>
        /// Start using shared settings from given context.
        /// </summary>
        /// <param name="context">The context supplying the new shared settings.</param>
        public void SetContext(WorldLockingContext context)
        {
            shared = context.SharedSettings;
            DiagnosticRecordings.SharedSettings = context.DiagnosticsSettings;

            if (!hasBeenStarted)
            {
                OneTimeStartUp();
            }

            ApplyNewSettings();

            Debug.Log($"Context {context.name} set, Adjustment={(AdjustmentFrame == null ? "Null" : AdjustmentFrame.name)}");
        }
Exemple #3
0
        /// <summary>
        /// Start using shared settings from given context.
        /// </summary>
        /// <param name="context">The context supplying the new shared settings.</param>
        public void SetContext(WorldLockingContext context)
        {
            shared = context.SharedSettings;
            DiagnosticRecordings.SharedSettings = context.DiagnosticsSettings;

            if (initializationState == InitializationState.Uninitialized)
            {
                ResetAnchorManager();
            }

            ApplyNewSettings();

            DebugLogSetup($"Context {context.name} set, Adjustment={(AdjustmentFrame == null ? "Null" : AdjustmentFrame.name)}");
        }