Ejemplo n.º 1
0
    public void StartAwkwardConversation()
    {
        inConversation        = true;
        currentConversation   = GetComponent <Conversation>().GetRandomConversation();
        conversationText.text = currentConversation.conversationText;
        option1Text.text      = "(Up): " + currentConversation.options[0].Key;
        option2Text.text      = "(Down): " + currentConversation.options[1].Key;

        int random = Random.Range(1, 4);

        GameObject.Find("Talk Sound " + random).GetComponent <AudioSource>().Play();
    }
Ejemplo n.º 2
0
 public void StartAwkwardConversation()
 {
     inConversation = true;
     currentConversation = GetComponent<Conversation>().GetRandomConversation();
     conversationText.text = currentConversation.conversationText;
     option1Text.text = "(Up): " + currentConversation.options[0].Key;
     option2Text.text = "(Down): " + currentConversation.options[1].Key;
     
     int random = Random.Range(1, 4);
     GameObject.Find("Talk Sound " + random).GetComponent<AudioSource>().Play();
 }