Esempio n. 1
0
    public void VedioEnd()
    {
        StartCoroutine(cor_VedioEnd());

        VedioData.ComleteStoryVedio(this.storyTitle);

        FinishEvent.Invoke();
    }
Esempio n. 2
0
    IEnumerator cor_VedioStart()
    {
        PlayerStatus.canControl = false;
        if (BGM_Object != null)
        {
            BGM_Object.SetActive(false);
        }

        GameObject.Find("GameManager").GetComponent <GameManager>().BlackPanelFade(1f, 0.5f);
        yield return(new WaitForSeconds(1f));

        transform.Find("Vedio").gameObject.SetActive(true);
        this.GetComponent <CanvasGroup>().alpha = 0f;
        this.GetComponent <CanvasGroup>().DOFade(1f, 1f);

        skipButton.SetActive(false);
        if (VedioData.hasTheStoryRead(this.storyTitle) == true)
        {
            StartCoroutine(OpenSkipBtn(3f));
        }
    }