Exemple #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("tagNextPoint"))
     {
         CMySoundMgr.GetInst().Stop(1);
         SceneManager.LoadScene("CSceneSpotLoad");
     }
 }
 public static CMySoundMgr GetInst()
 {
     if (mInstance == null)
     {
         mInstance = new CMySoundMgr();
     }
     return(mInstance);
 }
    void Start()
    {
        CMySoundMgr.GetInst().CreateMy();
        CMySoundMgr.GetInst().SetAudioBundle(FindObjectOfType <CAudioBundle>());
        CMySoundMgr.GetInst().BuildMy();

        CMyGameDataMgr.GetInst().Create();

        SceneManager.LoadScene("CSceneTitle");
    }
 public void StartBGMForPlayGame()
 {
     CMySoundMgr.GetInst().Play(1);
 }
 public void DoGoTitle()
 {
     CMySoundMgr.GetInst().Stop(1);
     SceneManager.LoadScene("CSceneTitle");
 }
Exemple #6
0
 public void GoPlayGame()
 {
     CMySoundMgr.GetInst().Stop(0);
     //SceneManager.LoadScene("CSceneSpotLoad");
     SceneManager.LoadScene("CSceneDialogue");
 }
Exemple #7
0
    // Use this for initialization
    void Start()
    {
        CMySoundMgr.GetInst().Play(0);

        mpUITitle.SetScene(this);
    }
Exemple #8
0
 public void OnClickBtnGoConfig()
 {
     CMySoundMgr.GetInst().Stop(0);
     SceneManager.LoadScene("CSceneConfig");
 }
 private CMySoundMgr()
 {
     mInstance = null;
 }