Camera triggers

This commit is contained in:
Marco 2025-06-30 10:02:37 +02:00
commit b0d0161ab0
8 changed files with 1136 additions and 1074 deletions

View file

@ -0,0 +1,22 @@
using Godot;
namespace Cirno.Scripts.Utils;
public static class ActivationHelper
{
public static void UseTargets(Node activator, string target)
{
GD.Print($"Trying to use targets called: {target}");
var targetList = activator.GetTree().GetNodesInGroup(target);
foreach (var t in targetList)
{
//string f;
GD.Print($"Trying to use {t.Name}");
if (t is IActivable activable)
{
GD.Print($"Activating {t.Name}");
activable.Toggle();
}
}
}
}

View file

@ -0,0 +1 @@
uid://yaelg8hdimia