mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-20 06:43:47 +00:00
Removed debug messages for targets
This commit is contained in:
parent
7d267c406d
commit
e2b9cc8c90
1 changed files with 3 additions and 3 deletions
|
|
@ -7,15 +7,15 @@ public static class ActivationHelper
|
||||||
public static bool UseTargets(Node activator, string target, ActivationType activationType = ActivationType.Toggle)
|
public static bool UseTargets(Node activator, string target, ActivationType activationType = ActivationType.Toggle)
|
||||||
{
|
{
|
||||||
var res = false;
|
var res = false;
|
||||||
GD.Print($"Trying to use targets called: {target}");
|
//GD.Print($"Trying to use targets called: {target}");
|
||||||
var targetList = activator.GetTree().GetNodesInGroup(target);
|
var targetList = activator.GetTree().GetNodesInGroup(target);
|
||||||
foreach (var t in targetList)
|
foreach (var t in targetList)
|
||||||
{
|
{
|
||||||
//string f;
|
//string f;
|
||||||
GD.Print($"Trying to use {t.Name}");
|
//GD.Print($"Trying to use {t.Name}");
|
||||||
if (t is IActivable activable)
|
if (t is IActivable activable)
|
||||||
{
|
{
|
||||||
GD.Print($"Activating {t.Name}");
|
//GD.Print($"Activating {t.Name}");
|
||||||
res |= activable.Activate(activationType);
|
res |= activable.Activate(activationType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue