Open erikhallin opened 7 years ago
På player:
public Material highAltitudeMaterial; public Material lowAltitudeMaterial; void Update() { if (transform.position.y > 100 && RenderSettings.skybox != highAltitudeMaterial) { RenderSettings.skybox = highAltitudeMaterial; } else if (transform.position.y < 100 && RenderSettings.skybox != lowAltitudeMaterial) RenderSettings.skybox = lowAltitudeMaterial; } }
På player: