Entwickler haben also Bedürfnisse?
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user