14 lines
331 B
C#
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();
|
|
}
|
|
}
|