using System.Collections.Generic; using UnityEditor; using UnityEngine; namespace Module.ProjectValidator.Editor { internal sealed class GameObjectValidatorMissingComponents : IGameObjectValidator { public void Validate(GameObject gameObject, List results) { var count = GameObjectUtility.GetMonoBehavioursWithMissingScriptCount(gameObject); if (count != 0) results.Add(ValidatorResult.Create(EValidatorSeverity.Error, $"GameObject is missing {count} component(s)")); } } }