mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 10:35:54 +00:00
Generic marker pickups
This commit is contained in:
parent
6cbf2014b4
commit
692c33c939
15 changed files with 176 additions and 36 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue