IEnumerator PageFlow(GoCatType type)
    {
        Debug.Log("Cat : " + type.ToString());
        GamePublicAudioControl.Instance.DownSceneMusic();
        yield return(new WaitForSeconds(1f));

        if (type == GoCatType.AlphaBG_Cat_HomeBtn)
        {
            AlphaBG.gameObject.SetActive(true);

            ScenePage_MiddleCat_Anim.gameObject.SetActive(true);

            if (Home_Cat_Clip == null)
            {
                Debug.LogError("Home Cat Clip Is Null But You Still want to play it");
            }

            audioSoucre.PlayOneShot(Home_Cat_Clip);

            yield return(null);

            while (audioSoucre.isPlaying)
            {
                yield return(null);
            }


            ScenePage_MiddleCat_Anim.gameObject.SetActive(false);
            ScenePage_Home_Btn.gameObject.SetActive(true);
        }
        else if (type == GoCatType.DeepBG_Cat_GoBtn)
        {
            DeepBG.gameObject.SetActive(true);

            ScenePage_MiddleCat_Anim.gameObject.SetActive(true);

            if (DeepBG_Cat_Clip == null)
            {
                Debug.LogError("DeepBG_Cat_Clip Is Null But You Still want to play it");
            }
            audioSoucre.PlayOneShot(DeepBG_Cat_Clip);

            yield return(null);

            while (audioSoucre.isPlaying)
            {
                yield return(null);
            }


            ScenePage_MiddleCat_Anim.gameObject.SetActive(false);
            ScenePage_GO_Btn.gameObject.SetActive(true);
        }
        else if (type == GoCatType.NotBG_Cat_GoBtn)
        {
            ScenePage_LitCat_Anim.gameObject.SetActive(true);

            if (Error_Cat_Clip == null)
            {
                Debug.LogError("Error_Cat_Clip Is Null But You Still want to play it");
            }
            audioSoucre.PlayOneShot(Error_Cat_Clip);

            yield return(null);

            while (audioSoucre.isPlaying)
            {
                yield return(null);
            }

            DeepBG.gameObject.SetActive(true);
            ScenePage_LitCat_Anim.gameObject.SetActive(false);
            ScenePage_GO_Btn.gameObject.SetActive(true);
        }

        GamePublicAudioControl.Instance.UpSceneMusic();
    }
 public void SetGoCatPageInfo(GoCatType _goCatType)
 {
     goCatType = _goCatType;
     StartCoroutine(PageFlow(goCatType));
 }