Exemplo n.º 1
0
    IEnumerator IStart()
    {
        Hasbegin = true;

        Image1.DOFade(1, 1f);
        m_Text.DOFade(0, 1);
        yield return(new WaitForSeconds(1));

        m_Text.text = "Your Friend: Traitor! I'll kill you!";
        m_Text.DOFade(1, 1);
        yield return(new WaitForSeconds(4.5f));

        Image1.DOFade(0, 1f);
        Image2.DOFade(1, 1f);
        m_Text.DOFade(0, 1);
        yield return(new WaitForSeconds(1));

        m_Text.text = "You: I didin't betray you!\nIt's a misunderstanding";
        m_Text.DOFade(1, 1);
        yield return(new WaitForSeconds(3f));

        Image2.DOFade(0, 1f);
        Image3.DOFade(1, 1f);
        m_Text.DOFade(0, 1);
        yield return(new WaitForSeconds(1));

        m_Text.text = "Your Friend: I don't believe you any moreeeeeeee";
        m_Text.DOFade(1, 1);
        yield return(new WaitForSeconds(3f));

        BeginTime = Time.unscaledTime;
        SceneManager.LoadScene(1);
    }