merging the n nightmare
This commit is contained in:
parent
659d86544a
commit
0258302243
4 changed files with 9 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue