GodotComponentTest/components/InteractionComponent.cs

21 lines
469 B
C#
Raw Permalink Normal View History

using Godot;
namespace GodotComponentTest.components;
public class InteractionComponent: Component
{
[Signal]
delegate void InteractionStart(Spatial owningEntity, Spatial targetEntity);
[Signal]
delegate void InteractionEnd(Spatial owningEntity, Spatial targetEntity);
2023-11-10 20:22:55 +01:00
public void EndInteraction()
{
hasStopped = true;
}
public bool hasStopped = false;
public Spatial OwningEntity;
public Spatial TargetEntity;
}