void SingletonPrinciple() { if (Instance == null) { Instance = this; DontDestroyOnLoad(this); } else { Destroy(this); } }
//Loads the BGM depending on the scene index void LoadBGM(int Index) { switch (Index) { case 4: TL_AudioPlayer.PlaySnowyAreaBGM(); break; case 5: TL_AudioPlayer.PlayIceCaveBGM(); break; } }