public void EquippedHand(EquippedHandEventArgs eventArgs)
        {
            if (!eventArgs.User.TryGetComponent(out IActorComponent? actor) || actor.playerSession == _lastUser)
            {
                return;
            }

            _lastUser = actor.playerSession;

            Owner.PopupMessage(eventArgs.User, Loc.GetString("Play Needles Piano Now"));
            EntitySystem.Get <AudioSystem>().PlayGlobal("/Audio/Misc/needles_piano_pickup.ogg", null,
                                                        session => session == _lastUser);
        }
 void IEquippedHand.EquippedHand(EquippedHandEventArgs eventArgs)
 {
     eventArgs.User.PopupMessage("equipped hand " + _entMan.GetComponent <MetaDataComponent>(Owner).EntityName);
 }
Ejemplo n.º 3
0
 void IEquippedHand.EquippedHand(EquippedHandEventArgs eventArgs)
 {
     eventArgs.User.PopupMessage("equipped hand " + Owner.Name);
 }