mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 18:45:53 +00:00
Concurrent audio limit and volume limiter
This commit is contained in:
parent
f2670cb1e7
commit
a533f93361
11 changed files with 162 additions and 6 deletions
|
|
@ -4,6 +4,7 @@ using System.Linq;
|
|||
using System.Threading.Tasks;
|
||||
using Cirno.Scripts;
|
||||
using Cirno.Scripts.Components.FSM;
|
||||
using Cirno.Scripts.Misc;
|
||||
using Cirno.Scripts.Resources;
|
||||
using Godot.Collections;
|
||||
using Cirno.Scripts.Utils;
|
||||
|
|
@ -60,6 +61,8 @@ public partial class GameManager : Node2D
|
|||
public delegate void PlayerRespawnedEventHandler();
|
||||
|
||||
public Vector2 LastCheckpointPosition { get; set; }
|
||||
|
||||
private AudioManager _audioManager;
|
||||
|
||||
[Export]
|
||||
public Node2D PlayerParentNode { get; set; }
|
||||
|
|
@ -76,6 +79,9 @@ public partial class GameManager : Node2D
|
|||
GlobalState.Instance.SaveGame();
|
||||
}
|
||||
|
||||
_audioManager = new AudioManager();
|
||||
this.AddChild(_audioManager);
|
||||
|
||||
_hud = GetNodeOrNull<Hud>("HUD");
|
||||
if (_hud == null) GD.Print("No HUD in scene.");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue