public void Interact(InteractionArgs args)
 {
     if (args.InteractionType == InteractionType.EQUIP)
     {
         EquipToolbarItem(args.Slot);
     }
     else if (args.InteractionType == InteractionType.PLACE)
     {
         PlaceItem();
     }
     else
     {
         throw new ArgumentException("Unknown or not implemented interaction type.");
     }
 }
Beispiel #2
0
 public void Interact(InteractionArgs args)
 {
     Log?.WriteLine($"Interaction type: {args.InteractionType}");
     Log?.WriteLine($"Slot: {args.Slot}");
 }