Files
SoulliesOfficial ef7b479712 initial
2025-11-25 08:19:33 -05:00

26 lines
415 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace AmplifyShaderEditor
{
public class NodeUpdateCache : HashSet<ParentNode>
{
public bool Touch( ParentNode node )
{
if ( Contains( node ) )
{
// @diogo: already touched; cache hit
return true;
}
else
{
// @diogo: not touched yet; cache miss
Add( node );
return false;
}
}
}
}