mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
23 lines
537 B
C#
23 lines
537 B
C#
|
|
using Godot;
|
|||
|
|
|
|||
|
|
namespace Cirno.Scripts.Components.Actors;
|
|||
|
|
|
|||
|
|
public abstract partial class ActorAimingProvider : Node2D
|
|||
|
|
{
|
|||
|
|
protected Actor _parent;
|
|||
|
|
|
|||
|
|
public abstract Vector2 FacingDirection { get; set; }
|
|||
|
|
|
|||
|
|
public virtual void Init(Actor parent)
|
|||
|
|
{
|
|||
|
|
_parent = parent;
|
|||
|
|
|
|||
|
|
var children = GetChildren();
|
|||
|
|
foreach (var child in children) {
|
|||
|
|
if (child is InputProvider inputProvider)
|
|||
|
|
{
|
|||
|
|
//_inputProviders.Add(inputProvider);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|