needs per minute = NPM implementiert

This commit is contained in:
2024-04-05 14:45:41 +02:00
parent e89ddca89b
commit 7f4c15bf1c
2 changed files with 26 additions and 7 deletions

View File

@ -18,7 +18,7 @@ public class DeveloperNeeds : MonoBehaviour
}
public void spawnNeed(string needName)
public bool spawnNeed(string needName)
{
GameObject spawnedNeed = null;
@ -44,6 +44,8 @@ public class DeveloperNeeds : MonoBehaviour
if (spawnedNeed != null)
{
spawnedNeed.transform.SetParent(transform, false);
return true;
}
return false;
}
}