Пример #1
0
    //Sets the clips to be read
    public void SetNumberList(List <int> num)
    {
        if (!reading)
        {
            clipList = new List <AudioClip>();

            foreach (int i in num)
            {
                clips = numberReader.GetNumberAudio(i);
                clipList.Add(clips[0]);

                //If number is over 20 there will be 2 clips
                if (i > 20)
                {
                    if (i != 30)
                    {
                        clipList.Add(clips[1]);
                    }
                }
            }

            lastClip    = clipList.Count;
            currentClip = 0;
        }
    }
Пример #2
0
    public void SetNumberList(List <int> num)
    {
        List <AudioClip> clipList = new List <AudioClip>();

        foreach (int i in num)
        {
            clips = numberReader.GetNumberAudio(i);

            clipList.Add(clips[0]);
        }


        lastClip    = clipList.Count;
        currentClip = 0;
        IterateClipList(clipList);
    }