Пример #1
0
    static private void LoadAllAudios()
    {
        if (_soundsLib.Count > 0)
        {
            return;
        }

        soundsCointaner = General.Create(Root.classesContainer, CamControl.CurrentCamera().transform.position,
                                         "SoundContainer", CamControl.CurrentCamera().transform);

        //starts the music
        MusicManager.Start();
    }
Пример #2
0
 public static void CameraWasChanged()
 {
     soundsCointaner.gameObject.transform.SetParent(CamControl.CurrentCamera().transform);
     soundsCointaner.gameObject.transform.position = CamControl.CurrentCamera().transform.position;
 }