Пример #1
0
    public void NextImage()
    {
        CriAtomSource atomSrc = gameObject.GetComponent <CriAtomSource>();

        if (atomSrc != null)
        {
            atomSrc.Play();
        }
        if (Gif02.activeSelf)
        {
            SceneManager.LoadScene("Start Voice");
        }
        if (Gif01.activeSelf)
        {
            Gif01.SetActive(false);
            Gif02.SetActive(true);
            if (!nextbutton.activeSelf)
            {
                nextbutton.SetActive(true);
                Debug.Log("next1");
            }
            if (!returnbutton.activeSelf)
            {
                returnbutton.SetActive(true);
            }
            VoiceOtionText.SetActive(false);
            MikeOptionText.SetActive(true);
        }
    }
Пример #2
0
    public void ReturnImage()
    {
        CriAtomSource atomSrc = gameObject.GetComponent <CriAtomSource>();

        if (atomSrc != null)
        {
            atomSrc.Play();
        }

        if (Gif02.activeSelf)
        {
            Gif02.SetActive(false);
            Gif01.SetActive(true);
            if (returnbutton.activeSelf)
            {
                returnbutton.SetActive(false);
                MikeOptionText.SetActive(false);
                VoiceOtionText.SetActive(true);
                Debug.Log("retruen1");
            }
        }
    }