Pulver can carry shit

This commit is contained in:
2025-10-14 16:20:57 +02:00
parent e8180b21bf
commit 67b8aea93a
50 changed files with 9390 additions and 15 deletions

View File

@@ -426,9 +426,11 @@ public class FollowerController: MonoBehaviour
{
// Drop the currently held item at the current position
DropHeldItemAt(transform.position);
}
// Pick up the new item
SetHeldItem(itemData, itemObject.GetComponent<SpriteRenderer>());
_animator.SetBool("IsCarrying", true);
_cachedPickupObject = itemObject;
_cachedPickupObject.SetActive(false);
}
@@ -521,6 +523,7 @@ public class FollowerController: MonoBehaviour
{
_cachedPickupObject = null;
_currentlyHeldItemData = null;
_animator.SetBool("IsCarrying", false);
if (heldObjectRenderer != null)
{
heldObjectRenderer.sprite = null;