汎用的なものをつくったので置いておきます
private int GetAvatarComponentCount<T>(GameObject avatar, bool containDisableObject)
{
return avatar.GetComponentsInChildren<T>(containDisableObject).Count();
}
More than 3 years have passed since last update.
汎用的なものをつくったので置いておきます
private int GetAvatarComponentCount<T>(GameObject avatar, bool containDisableObject)
{
return avatar.GetComponentsInChildren<T>(containDisableObject).Count();
}
Register as a new user and use Qiita more conveniently