random talk
This commit is contained in:
@ -78,6 +78,16 @@ public partial class GameManager : MonoBehaviourSingleton<GameManager>
|
||||
public double ExpectedRemainingGameDuration => _remainingGameDurationSeconds / _currentEfficiency;
|
||||
|
||||
private bool _isStarted;
|
||||
|
||||
private float _randomContextTimer = 20f;
|
||||
|
||||
private List<string> _randomContextList = new List<string>() { "The Developer finally fixed a bug that bothered him a lot",
|
||||
"The Developer tells Gottfried that Richard farted again",
|
||||
"The Developer is struggling really hard to solve the bug",
|
||||
"The Developer tells Gottfried about his lovely cat Mautzi",
|
||||
"The Developer is afraid Zombies might come around",
|
||||
"The Developer is curious about how Gottfrieds day was so far",
|
||||
"The Developer blames Gottfried for some random nonsense"};
|
||||
|
||||
public bool IsGameRunning => _gameRunning.IsTrue;
|
||||
|
||||
@ -88,6 +98,16 @@ public partial class GameManager : MonoBehaviourSingleton<GameManager>
|
||||
//StartGame();
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
_randomContextTimer -= Time.deltaTime;
|
||||
if (_randomContextTimer < 0)
|
||||
{
|
||||
_randomContextTimer = 30f;
|
||||
AddContext(_randomContextList.GetRandomElement());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Startet ein neues Spiel.
|
||||
|
||||
Reference in New Issue
Block a user