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.
16 lines
425 B
16 lines
425 B
using Godot;
|
|
|
|
namespace Babushka.scripts.CSharp.Common.Fight;
|
|
|
|
public partial class FighterDamageIndicatorVisual : Node2D
|
|
{
|
|
[Export] private PackedScene _flyingNumberPrefab = null!;
|
|
|
|
|
|
public void SpawnFlyingNumber(string text)
|
|
{
|
|
var flyingNumberInstance = _flyingNumberPrefab.Instantiate<FlyingIndicator>();
|
|
AddChild(flyingNumberInstance);
|
|
flyingNumberInstance.Initialize(text);
|
|
}
|
|
} |