Exemplo n.º 1
0
 public void LoadScene(int sceneIndex)
 {
     //animation tools component attached at blackmask has a method named loadscene. we use this
     m_RiseMask.gameObject.SetActive(true);
     HOAudioManager.StopBGM();
     m_RiseMask.GetComponent <AnimationTools>().sceneIndex = 1;
     //Application.LoadLevel(sceneIndex);
 }
Exemplo n.º 2
0
 void Awake()
 {
     if (m_BGMKey == default(int))
     {
         HOAudioManager.StopBGM(true);
     }
     else
     {
         HOAudioManager.PlayBGM(m_BGMKey, true);
     }
 }