public void SetAll( bool b )
{
var num = b ? uint.MaxValue : 0u;
for( var i = 0; i < _bytes.Length; i++ )
{
_bytes[i] = num;
}
}
public void CreateMask() { mask.SetAll(false); // Initialize the ECSInterface's mask from each attached Component var components = gameObject.GetComponents <Component>(); foreach (var component in components) { mask[ComponentIDs.Get(component.GetType())] = true; } }