Пример #1
0
 public static void Init()
 {
     soloud.init();
     MasterVolume = 1;
     SoundVolume  = 1;
     MusicVolume  = 1;
     // soloud.setGlobalVolume(2);
 }
Пример #2
0
        protected override void OnFeatureAdded(Entity entity, SoLoudBackendFeature feature)
        {
            base.OnFeatureAdded(entity, feature);

            if (soloud != null)
            {
                logger.ZLogCritical("A SoLoud object already exist!");
                return;
            }

            soloud = new Soloud();
            soloud.init();
            soloud.setGlobalVolume(0.5f);

            World.Mgr.CreateEntity()
            .Set(soloud);
        }