public static bool AssertRequireComponentInEntityAttrib(Component comp, out System.Type missingCompType, bool silent = false)
        {
            if (comp == null) throw new System.ArgumentNullException("comp");
            missingCompType = null;

            var tp = comp.GetType();
            foreach (var obj in tp.GetCustomAttributes(typeof(RequireComponentInEntityAttribute), true))
            {
                RequireComponentInEntityAttribute attrib = obj as RequireComponentInEntityAttribute;
                foreach (var reqType in attrib.Types)
                {
                    if (!comp.EntityHasComponent(reqType))
                    {
                        missingCompType = reqType;
                        if(!silent) Assert(System.String.Format("(Entity:{2}) Component type {0} requires the entity to also have a component of type {1}.", tp.Name, reqType.Name, comp.FindRoot().name), comp);
                        return true;
                    }
                }
            }

            return false;
        }