public void ToggleSwordEquipped()
{
IAvatar localAvatar = SpatialBridge.actorService.localActor.avatar;
if (localAvatar.IsAttachmentEquipped("SwordAttachment"))
{
localAvatar.ClearAttachmentSlot(SpatialAvatarAttachment.Slot.RightHand);
}
else
{
localAvatar.EquipAttachment(AssetType.EmbeddedAsset, "SwordAttachment");
}
}
public void ToggleSwordEquipped()
{
IAvatar localAvatar = SpatialBridge.actorService.localActor.avatar;
if (localAvatar.IsAttachmentEquipped("SwordAttachment"))
{
localAvatar.ClearAttachmentSlot(SpatialAvatarAttachment.Slot.RightHand);
}
else
{
localAvatar.EquipAttachment(AssetType.EmbeddedAsset, "SwordAttachment");
}
}