We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f68ec8b commit ab709a1Copy full SHA for ab709a1
Assets/Scripts/Gameplay/Configuration/NameGenerationData.cs
@@ -1,4 +1,3 @@
1
-using System;
2
using UnityEngine;
3
using Random = UnityEngine.Random;
4
@@ -19,8 +18,8 @@ public class NameGenerationData : ScriptableObject
19
18
20
public string GenerateName()
21
{
22
- var firstWord = FirstWordList[Random.Range(0, FirstWordList.Length - 1)];
23
- var secondWord = SecondWordList[Random.Range(0, SecondWordList.Length - 1)];
+ var firstWord = FirstWordList[Random.Range(0, FirstWordList.Length)];
+ var secondWord = SecondWordList[Random.Range(0, SecondWordList.Length)];
24
25
return firstWord + " " + secondWord;
26
}
0 commit comments