Adjust player and jump pad physics parameters; refine visual effects and project settings
This commit is contained in:
@@ -45,6 +45,7 @@ namespace Infrastructure.Unity
|
||||
private bool _isGameRunning;
|
||||
private int _currentPlayerFloorIndex;
|
||||
private int _currentDisplayedScore;
|
||||
private float _inputBlockTimer;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
@@ -61,6 +62,7 @@ namespace Infrastructure.Unity
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_inputBlockTimer = 0.5f;
|
||||
_persistenceService = new PlayerPrefsPersistenceAdapter();
|
||||
_gameSession = new GameSession(_allTiles, _persistenceService);
|
||||
|
||||
@@ -98,6 +100,12 @@ namespace Infrastructure.Unity
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (_inputBlockTimer > 0f)
|
||||
{
|
||||
_inputBlockTimer -= Time.deltaTime;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_isGameRunning)
|
||||
{
|
||||
if (_actions.Player.StartGame.triggered)
|
||||
|
||||
Reference in New Issue
Block a user