public void setLight() { if (light != null && meshItem != null && meshItem.activeInHierarchy) { light.lightMaterial(meshItem); } }
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); } }