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.
25 lines
640 B
25 lines
640 B
using Godot;
|
|
|
|
namespace Babushka.scripts.CSharp.Common.Fight;
|
|
|
|
public partial class ActionAnimationController : Node
|
|
{
|
|
#region Shortcuts
|
|
|
|
private FightWorld.FightHappeningData HappeningData => FightWorld.Instance.fightHappeningData ?? throw new NoFightHappeningException();
|
|
|
|
#endregion
|
|
|
|
[Export] private AllFightersVisual _allFightersVisual = null!;
|
|
[Export] private FightHappeningAnimationContext _animationContext = null!;
|
|
|
|
public void StateEnter()
|
|
{
|
|
_ = HappeningData.actionStaging!.AnimateAction(_allFightersVisual,_animationContext);
|
|
}
|
|
|
|
public void StateExit()
|
|
{
|
|
|
|
}
|
|
} |