Exemple #1
0
 private void SetDomeStructureController()
 {
     if (domeStructureController == null || !domeStructureController.IsUsableByAWG())
     {
         foreach (RaycastHit raycastHit in Physics.RaycastAll(transform.position, Vector3.up, 100))
         {
             StructureController sc = StructureController.GetStructureControllerFromChild(raycastHit.transform.gameObject);
             if (sc != null && sc.IsUsableByAWG())
             {
                 domeStructureController = sc;
                 return;
             }
         }
     }
 }