Anpassungen zum Start mit Combat System Prototyping

This commit is contained in:
PBM2H25BSH committed 2026-11-02 14:35:06 +01:00
1 parent e7e50e44f5
commit a9fe30699d
25 files changed
+55178 -3625

No files matched your search

+7 -2
View File
@@ -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;
}