sasalka/Code/Sounds/MusicPlayerInteractions.cs
2025-05-25 19:14:50 +03:00

14 lines
331 B
C#

using Sandbox;
public sealed class MusicPlayerInteractions : SimpleInteractions.SimpleInteraction
{
[Property] public MyMusicPlayer MusicPlayer { get; set; }
[Rpc.Broadcast]
protected override void OnInteract()
{
// Log.Info($"{Rpc.Caller.DisplayName} interacted with {this.GameObject.Name}!");
MusicPlayer.Next();
}
}