Merge branch 'main' of https://git.bib.de/PBM2H25BSH/DepthsOfGreed
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
This commit is contained in:
commit
6f14383097
38 files changed
+56584
-300
No files matched your search
@@ -49,6 +49,7 @@ public class EnemySpawner : MonoBehaviour
|
||||
private float tempDifficulty;
|
||||
private bool hasSpawnedGroupThisCycle = false;
|
||||
private bool pauseDifficultyGrowth = false;
|
||||
private float time = 0f;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
@@ -80,6 +81,10 @@ public class EnemySpawner : MonoBehaviour
|
||||
private void Update()
|
||||
{
|
||||
// Freischaltschwelle wächst immer weiter.
|
||||
time = time + Time.deltaTime;
|
||||
//Debug.Log(time);
|
||||
|
||||
// Schwierigkeit erhöht sich.
|
||||
difficultyRaise += raiseRate * Time.deltaTime;
|
||||
|
||||
// Budget wächst nur, wenn es nicht pausiert ist.
|
||||
@@ -87,7 +92,7 @@ public class EnemySpawner : MonoBehaviour
|
||||
{
|
||||
difficulty += difficultyRaise * Time.deltaTime;
|
||||
}
|
||||
Debug.Log("DifficultyRaise: " + difficultyRaise + " und Difficulty: " + difficulty);
|
||||
Debug.Log("Time: " + time + ", DifficultyRaise: " + difficultyRaise + " und Difficulty: " + difficulty);
|
||||
}
|
||||
|
||||
private IEnumerator SpawnLoop()
|
||||
@@ -246,7 +251,7 @@ public class EnemySpawner : MonoBehaviour
|
||||
continue;
|
||||
}
|
||||
|
||||
if (enemy.danger > difficultyRaise)
|
||||
if (enemy.danger > time)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user