private void ValidateAccess(params NodeKind[] allowedKind) { foreach(var k in allowedKind) { if (k == m_kind) { return; } } throw new AssetBundleGraphException(m_name + ": Tried to access invalid method or property."); }