16 lines
294 B
C#
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;
|
|
}
|
|
}
|