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