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
530 B
20 lines
530 B
using Godot;
|
|
|
|
namespace Babushka.scripts.CSharp.Common.Fight;
|
|
|
|
public partial class RoamingEnemyGroup : Node2D
|
|
{
|
|
private FightWorld.FighterGroup _boundEnemyGroup;
|
|
private FightSceneSwitcher _fightSceneSwitcher;
|
|
|
|
public void Initialize(FightWorld.FighterGroup enemyGroup, FightSceneSwitcher fightSceneSwitcher)
|
|
{
|
|
_boundEnemyGroup = enemyGroup;
|
|
_fightSceneSwitcher = fightSceneSwitcher;
|
|
}
|
|
|
|
public void StartFight()
|
|
{
|
|
_fightSceneSwitcher.SwitchToFight(_boundEnemyGroup);
|
|
}
|
|
} |