public static BaseEntity GetEntity(this RaycastHit hit) { return(((Component)hit.GetTransform()).get_gameObject().ToBaseEntity()); }
public static BaseEntity GetEntity(this RaycastHit hit) { return(hit.GetTransform().gameObject.ToBaseEntity()); }