Generic marker pickups

This commit is contained in:
Marco 2025-05-01 10:04:15 +02:00
commit 692c33c939
15 changed files with 176 additions and 36 deletions

View file

@ -100,4 +100,11 @@ public partial class ItemPickup : Interactable
// }
// }
}
public void SetSprite(Texture2D sprite)
{
var spriteNode = GetNodeOrNull<Sprite2D>("Sprite2D");
if (spriteNode is null) return;
spriteNode.Texture = sprite;
}
}