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.
20 lines
526 B
20 lines
526 B
using Godot;
|
|
namespace Babushka.scripts.CSharp.Common.Fight;
|
|
|
|
public partial class FightStarter : Node
|
|
{
|
|
[Export(PropertyHint.ArrayType)] private PackedScene[] enemies;
|
|
//[Export] private FightHappening _fightHappening;
|
|
[Export] private bool _once = true;
|
|
private bool hasBeenStarted = false;
|
|
|
|
public void Start(Node2D _)
|
|
{
|
|
if (_once && hasBeenStarted)
|
|
return;
|
|
|
|
hasBeenStarted = true;
|
|
//FightManager.Instance.StartFight(enemies, _fightHappening);
|
|
}
|
|
}
|