Exemple #1
0
    public SpeakerPair LoadSpeakerPair(int i)
    {
        string      file  = "Convo" + i;
        TextAsset   asset = Resources.Load(Path.Combine("Dialogue", file)) as TextAsset;
        SpeakerPair sp    = JsonUtility.FromJson <SpeakerPair> (asset.text);

        return(sp);
    }
Exemple #2
0
    void AddSpeakerOfNewPairToBoard()
    {
        SpeakerPair pairToLoad = speakerPairs[0];

        speakerPairs.RemoveAt(0);

        jacks[curJackIndex].ReceiveNewSpeaker(pairToLoad.speaker1);
        curJackIndex = (curJackIndex + 1) % jacks.Count;

        speakersWhosePairsAreOnBoard.Add(pairToLoad.speaker2);
    }