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