replace for loop

This commit is contained in:
xxSeys1
2024-11-21 20:20:42 +01:00
parent b055117144
commit 38d1e25604

View File

@@ -428,17 +428,9 @@ namespace FlaxEditor.Surface.Archetypes
/// <inheritdoc />
public bool IsParamreferenced(SurfaceParameter param)
{
for (int i = 0; i < Surface.Nodes.Count; i++)
{
if (Surface.Nodes[i] is IParametersDependantNode node)
{
return (Guid)Values[0] == param.ID;
}
}
return false;
}
/// <inheritdoc />
public override void OnLoaded(SurfaceNodeActions action)
@@ -959,17 +951,9 @@ namespace FlaxEditor.Surface.Archetypes
/// <inheritdoc />
public bool IsParamreferenced(SurfaceParameter param)
{
for (int i = 0; i < Surface.Nodes.Count; i++)
{
if (Surface.Nodes[i] is IParametersDependantNode node)
{
return (Guid)Values[0] == param.ID;
}
}
return false;
}
/// <inheritdoc />
public override void OnLoaded(SurfaceNodeActions action)