Ejemplo n.º 1
0
        public override void _PhysicsProcess(float delta)
        {
            base._PhysicsProcess(delta);

            if (!_speech.Playing)
            {
                if (_speech.Stream != null)
                {
                    _speech.GetStream().Free();
                }
            }

            if (!_ambient.Playing)
            {
                if (_ambient.Stream != null)
                {
                    _ambient.GetStream().Free();
                }
            }
        }