public static bool AssertHasLikeComponent(GameObject go, System.Type tp) { if (!go.HasComponent(tp)) { Assert(System.String.Format("(GameObject:{1}) GameObject requires a component of type {0}.", tp.Name, go.name), go); return true; } return false; }