Update project version and dependencies; adjust DeathPlane scale and refine settings

This commit is contained in:
2026-04-19 15:53:11 +02:00
parent effcda6b10
commit 17e3425de3
24 changed files with 818 additions and 1230 deletions

View File

@@ -10,7 +10,7 @@ namespace Infrastructure.Unity
private void OnTriggerEnter(Collider other)
{
if (other.TryGetComponent<PlayerController>(out var player))
if (other.TryGetComponent<PlayerController>(out _))
{
OnPlayerFell?.Invoke();
}

View File

@@ -254,7 +254,7 @@ namespace Infrastructure.Unity
var lowestY = -(levelGenerator.FloorsCount * levelGenerator.FloorHeightDistance) - 5f;
var pos = new Vector3(levelGenerator.GridSizeX / 2f, lowestY, levelGenerator.GridSizeY / 2f);
var plane = Instantiate(deathPlanePrefab, pos, Quaternion.identity);
plane.transform.localScale = new Vector3(levelGenerator.GridSizeX * 2f, 1f, levelGenerator.GridSizeY * 2f);
plane.transform.localScale = new Vector3(levelGenerator.GridSizeX * 200f, 1f, levelGenerator.GridSizeY * 200f);
plane.OnPlayerFell += () => _gameSession.EndGame();
}