<JGDHK:JSDGH:PJHIODSJK>GDBS:KJSG

This commit is contained in:
Pasha Bibko
2026-01-22 16:14:45 +00:00
parent 95f4b36709
commit 529508a8f4
6 changed files with 176 additions and 6 deletions

View File

@@ -1,6 +1,4 @@
using System;
using System.IO;
using System.Linq;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
@@ -19,6 +17,7 @@ namespace InterfaceOff.WorldScene
[SerializeField] private int[] DeathIndices;
[SerializeField] private ExternalCamera ExternalCamera;
[SerializeField] private Image FrontLayerImage;
[SerializeField] private Animator PlayerAnimator;
private const int MAX_WINDOWS = 20;
@@ -48,6 +47,8 @@ namespace InterfaceOff.WorldScene
private void Update()
{
PlayerAnimator.Play("Block");
if (PlayerAlive)
{
/* Updates the position according to the lerp */

View File

@@ -106,7 +106,6 @@ namespace InterfaceOff
int currentMaxSpawnTime = MAX_SPAWN_TIME - (int)ScoreTracker.CurrentScore();
currentMaxSpawnTime = Math.Clamp(currentMaxSpawnTime, MIN_SPAWN_TIME + 1, MAX_SPAWN_TIME);
Debug.Log(currentMaxSpawnTime);
/* Decreases the spawn counter and spawns if at 0 */
TimeTillNextSpawn = Math.Max(0, TimeTillNextSpawn - 1);