//method used to take the voice id of this line manager, and cycle it by 1 along the list of voices.
    public void cycleVoices()
    {
        int voiceID = (int)voice;

        voiceID = (voiceID + 1) % Voices.GetNames(typeof(Voices)).Length;
        voice   = (Voices)voiceID;
        setVoiceColour();
    }
 //method called once to choose a random voice, and set the attached line renderer to the corresponding colour.
 private void chooseVoice()
 {
     voice = (Voices)Random.Range(1, (Voices.GetNames(typeof(Voices)).Length));
     setVoiceColour();
 }