sasalka/Code/Sounds/MusicPlayerInteractions.cs
2025-05-28 17:15:12 +03:00

16 lines
294 B
C#

using Sandbox;
using Sandbox.UI;
public sealed class MusicPlayerInteractions : InteractionButton
{
[Property] public MyMusicPlayer MusicPlayer { get; set; }
public override bool Press(IPressable.Event e)
{
base.Press(e);
Log.Info("PRESSED");
MusicPlayer.Next();
return true;
}
}