<JGDHK:JSDGH:PJHIODSJK>GDBS:KJSG
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user