You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
483 B
17 lines
483 B
using Godot;
|
|
|
|
namespace Babushka.scripts.CSharp.Common.Fight;
|
|
|
|
public partial class UsedItemIndicatorVisual : Node2D
|
|
{
|
|
[Export] private PackedScene _flyingIndicatorPrefab = null!;
|
|
[Export] private Texture2D _itemTexture = null!;
|
|
|
|
|
|
public void SpawnIndicator()
|
|
{
|
|
var flyingNumberInstance = _flyingIndicatorPrefab.Instantiate<FlyingIndicator>();
|
|
AddChild(flyingNumberInstance);
|
|
flyingNumberInstance.Initialize(icon: _itemTexture);
|
|
}
|
|
} |