EnemyLines eingebaut
This commit is contained in:
@@ -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?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user