Exemple #1
0
        public void StopShowingCharacterDetails()
        {
            foreach (PositionEffect positionEffect in _positionEffectsShown)
            {
                PoolingManager.Free(PoolingManager.PositionEffect, positionEffect.gameObject);
            }
            _positionEffectsShown.Clear();

            GameEntity playerActor    = _context.GetPlayerEntity();
            Position   playerPosition = playerActor.position.Position;

            _tilePresenter.ResetToHighTiles();
            _tilePresenter.ShortenHighTiles(playerPosition, 5);
        }
Exemple #2
0
 protected override void Execute(List <GameEntity> entities)
 {
     foreach (GameEntity entity in entities)
     {
         _tilePresenter.ResetToHighTiles();
         _tilePresenter.ShortenHighTiles(entity.position.Position, 5);
         if (_gameConfig.ModeConfig.Vision != Vision.Permanent)
         {
             _visibilityUpdater.UpdateVisibility(entity.position.Position, entity.vision.VisionRange);
         }
     }
 }