EnemyLines eingebaut

This commit is contained in:
2026-02-16 15:53:19 +01:00
parent 52198a202f
commit 14caba0f90

View File

@@ -66,7 +66,7 @@ public class GameOver : MonoBehaviour
timerOn = true;
timer = 10f;
deathPanel.SetActive(true);
infoText.text = "Try again?";
SpeakEnemy();
costText.text = cost.ToString(); //ZUM DEBUGGEN
CheckDeathTime();
@@ -137,4 +137,31 @@ public class GameOver : MonoBehaviour
{
cost = healthScript.deathCounter * 100;
}
public bool fieKill;
public bool silvKill;
public bool haiKill;
public void SpeakEnemy()
{
if (fieKill)
{
infoText.text = "HAAHAHAHAHAAHAHAHAHAHAHAHAHA";
}
if (silvKill)
{
infoText.text = "Oh no, I accidently killed someone again. I'm sowy. I just wanted to hug you :(";
}
if (haiKill)
{
infoText.text = "You sound great...";
}
else
{
infoText.text = "Try again?";
}
}
}