public string[] GetCharacterNames() { if (Speakers == null) { Speakers = Resources.Load <CharacterDatabase>("Characters/CharacterDatabase"); } return(Speakers?.GetNames().ToArray()); }
public int[] getNamesIntValues() { int[] values = new int[Speakers.GetNames().ToArray().Length]; for (int i = 0; i < values.Length; i++) { values[i] = i; } return(values); }