Пример #1
0
 public void setLight()
 {
     if (light != null && meshItem != null && meshItem.activeInHierarchy)
     {
         light.lightMaterial(meshItem);
     }
 }
Пример #2
0
 public void setLight()
 {
     if (upperLight != null && upperMeshItem != null && upperMeshItem.activeInHierarchy)
     {
         upperLight.lightMaterial(upperMeshItem);
     }
     if (lowerLight != null && lowerMeshItem != null && lowerMeshItem.activeInHierarchy)
     {
         lowerLight.lightMaterial(lowerMeshItem);
     }
     if (middleLight != null && middleMeshItem != null && middleMeshItem.activeInHierarchy)
     {
         middleLight.lightMaterial(middleMeshItem);
     }
 }