mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-22 12:43:47 +00:00
Better free movement
This commit is contained in:
parent
90d2a95fa8
commit
388747ccb3
7 changed files with 108 additions and 15 deletions
23
Scripts/Components/Actors/ActorAimingProvider.cs
Normal file
23
Scripts/Components/Actors/ActorAimingProvider.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue