Esempio n. 1
0
 public static float GetDefaultRepeatDistance(NetInfo prefab, LanePosition position)
 {
     return(NetUtils.GetMatchingLaneProp(prefab, laneProp => laneProp.m_finalTree != null, position)?.m_repeatDistance ?? 20f);
 }
Esempio n. 2
0
 public static TreeInfo GetDefaultTree(NetInfo prefab, LanePosition position)
 {
     return(NetUtils.GetMatchingLaneProp(prefab, laneProp => laneProp.m_finalTree != null, position)?.m_finalTree);
 }
 public static PropInfo GetDefaultStreetLight(NetInfo prefab)
 {
     return(NetUtils.GetMatchingLaneProp(prefab, laneProp => IsStreetLightProp(laneProp.m_finalProp))?.m_finalProp);
 }
 public static float GetDefaultRepeatDistance(NetInfo prefab)
 {
     return(NetUtils.GetMatchingLaneProp(prefab, laneProp => IsStreetLightProp(laneProp.m_finalProp))?.m_repeatDistance ?? 40f);
 }
Esempio n. 5
0
 public static PropInfo GetDefaultNormalCatenary(NetInfo prefab)
 {
     return(NetUtils.GetMatchingLaneProp(prefab, laneProp => IsNormalCatenaryProp(laneProp.m_finalProp))?.m_finalProp);
 }