Пример #1
0
        protected override void LateTickComponent(float deltaTime)
        {
            base.LateTickComponent(deltaTime);

            if (_currentGameMode == null)
            {
                return;
            }

            if (_currentGameMode.HasInitialized == false)
            {
                return;
            }

            if (_currentGameMode.HasInitialized && _currentGameMode.HasBeganPlay == false && _currentGameMode.CanLateTickBeforePlay == false)
            {
                return;
            }

            _currentGameMode.LateTick(deltaTime);
        }