Marisa bullets

This commit is contained in:
Marco 2025-02-15 14:33:44 +01:00
commit f2e6025b35
17 changed files with 227 additions and 6 deletions

View file

@ -4,13 +4,14 @@ namespace Cirno.Scripts.Interactables;
public partial class Switch : Interactable
{
[Export] public Activable Target { get; set; }
[Export] public Node2D Target { get; set; }
[Export] public ActivationType ActivationType { get; set; } = ActivationType.Toggle;
public override bool Activate()
{
if (MeetsRequirements())
if (MeetsRequirements() && Target is IActivable activable)
{
Target?.Activate();
activable?.Activate(ActivationType);
return true;
}