Esempio n. 1
0
 private BuildingBlock GetFoundation(BuildingPrivlidge Priv)
 {
     return(Physics.RaycastAll(Priv.transform.position, Vector3.down, 2f, Mask, QueryTriggerInteraction.Ignore)
            .Select(Hit => Hit.GetEntity() as BuildingBlock).FirstOrDefault(E => E));
 }