Update project version and dependencies; adjust DeathPlane scale and refine settings
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user