Entwickler haben also Bedürfnisse?

This commit is contained in:
Simon Lübeß
2024-04-05 19:24:26 +02:00
parent 17dbb6a356
commit 1bae35b3be
9 changed files with 14720 additions and 15 deletions

View File

@ -22,6 +22,14 @@ public class DeveloperNeeds : MonoBehaviour
}
// TODO: Enums statt strings verwenden
// TODO: Multiple Needs möglich übereinander anzeigen?
public GameObject SpawnCaffeineNeed() => spawnNeed(Random.Range(0.0f, 1.0f) < 0.5f ? "coffee" : "mate");
public GameObject SpawnToiletNeed() => spawnNeed("toilet");
public GameObject SpawnHungerNeed() => spawnNeed("hunger");
public GameObject SpawnMoneyNeed() => spawnNeed("money");
public GameObject spawnNeed(string needName)
{
@ -47,6 +55,7 @@ public class DeveloperNeeds : MonoBehaviour
context = "The NPC wants a raise, The NPC needs more money";
break;
default:
Debug.LogError($"Unbekannter need \"{needName}\"");
break;
}