private IStructureSupport SearchValidCeiling <T>(FloorArchitect floor) where T : IStructureSupport
 {
     foreach (T t in floor.GetComponentsInChildren <T>())
     {
         if (t != null && t.GetLevel() > floor.GetLevel() + 4f && this.IsPlayerPositionValid(LocalPlayer.Transform.position, floor, t))
         {
             return(t);
         }
     }
     return(null);
 }
Exemple #2
0
 private IStructureSupport SearchValidCeiling <T>(FloorArchitect floor) where T : IStructureSupport
 {
     T[] componentsInChildren = floor.GetComponentsInChildren <T>();
     for (int i = 0; i < componentsInChildren.Length; i++)
     {
         T t = componentsInChildren[i];
         if (t != null && t.GetLevel() > floor.GetLevel() + 4f && this.IsPlayerPositionValid(LocalPlayer.Transform.position, floor, t))
         {
             return(t);
         }
     }
     return(null);
 }