private bool Validate(SerializedObject serializedObject, out System.Type missingComponentType) { var c = serializedObject.targetObject as Component; missingComponentType = null; if (c == null) { return(true); } return(!Assertions.AssertRequireComponentInEntityAttrib(c, out missingComponentType, true)); }