public void VedioEnd() { StartCoroutine(cor_VedioEnd()); VedioData.ComleteStoryVedio(this.storyTitle); FinishEvent.Invoke(); }
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)); } }