Update QSBOrb.cs

This commit is contained in:
JohnCorby 2022-02-13 15:51:00 -08:00
parent 9632d31522
commit 609567a8cc

View File

@ -51,6 +51,8 @@ namespace QSB.OrbSync.WorldObjects
return;
}
DebugLog.DebugWrite($"{this} dragging = {value}");
if (value)
{
AttachedObject._isBeingDragged = true;
@ -65,6 +67,8 @@ namespace QSB.OrbSync.WorldObjects
AttachedObject._isBeingDragged = false;
AttachedObject._interactibleCollider.enabled = true;
}
DebugLog.DebugWrite($"{this} interactible collider enabled = {AttachedObject._interactibleCollider.enabled}");
}
public void SetSlot(int slotIndex, bool playAudio)
@ -76,6 +80,8 @@ namespace QSB.OrbSync.WorldObjects
return;
}
DebugLog.DebugWrite($"{this} slot = {slotIndex} {newSlot}");
if (oldSlot)
{
oldSlot._occupyingOrb = null;