コード例 #1
0
ファイル: ASystem.cs プロジェクト: smolen89/death-dungeon
        public void Update(TState state)
        {
            if (!IsEnabled)
            {
                return;
            }

            CurrentState = state;
            PreUpdate(CurrentState);
            runner.Update(this);
            PostUpdate(CurrentState);
        }
コード例 #2
0
        /// <summary>
        /// Updates the system once.
        /// </summary>
        /// <param name="state">The state to use.</param>
        public void Update(T state)
        {
            if (IsEnabled)
            {
                CurrentState = state;

                PreUpdate(CurrentState);

                _runner.Update(this);

                PostUpdate(CurrentState);
            }
        }