merging the n nightmare

This commit is contained in:
shakurass 2014-04-27 22:02:53 -06:00
commit 0258302243
4 changed files with 9 additions and 4 deletions

View file

@ -18,8 +18,10 @@ public class Patron : MonoBehaviour {
else
Debug.Log("Cannot find GameController script.");
if (Random.value > 0.6)
if (Random.value > 0.6 && gameController.currentNumberOfDemons < (gameController.maxPatrons / 4)) {
isDemon = true;
gameController.currentNumberOfDemons++;
}
}
void OnTriggerEnter(Collider other) {