Checks the game object for the specified component.
public static bool Has<T>(this UnityEngine.GameObject go, out T component);
go
UnityEngine.GameObject
The game object.
component
T
The returned component.
System.Boolean
Whether the game object contains the specified component type.