コード例 #1
0
        /// <summary>
        /// Called when the user load a save.
        /// </summary>
        /// <param name="saveData">Save being loaded.</param>
        public virtual void OnLoadingScreen(SaveData_v1 saveData)
        {
            CurrentLoadingType = LoadingType.Get(saveData.playerData.playerPosition);
            RefreshRect();
            RefreshBackground();

            foreach (LoadingScreenComponent component in components)
            {
                if (component.Enabled)
                {
                    component.OnLoadingScreen(saveData);
                }
            }
        }
コード例 #2
0
        /// <summary>
        /// Called during transition (entering/exiting building).
        /// </summary>
        /// <param name="args">Transition parameters.</param>
        public virtual void OnLoadingScreen(PlayerEnterExit.TransitionEventArgs args)
        {
            CurrentLoadingType = LoadingType.Get(args.TransitionType);
            RefreshRect();
            RefreshBackground();

            foreach (LoadingScreenComponent component in components)
            {
                if (component.Enabled)
                {
                    component.OnLoadingScreen(args);
                }
            }
        }