Use mathf instead

This commit is contained in:
Noah Pilarski 2022-07-13 19:54:50 -04:00
parent 6945c0b6c7
commit 074084c8f3

View File

@ -71,7 +71,7 @@ namespace NewHorizons.Builder.Body
cubeSphereMC.sharedMesh = mesh; cubeSphereMC.sharedMesh = mesh;
var cubeSphereSC = cubeSphere.AddComponent<SphereCollider>(); var cubeSphereSC = cubeSphere.AddComponent<SphereCollider>();
cubeSphereSC.radius = Math.Min(module.minHeight, module.maxHeight); cubeSphereSC.radius = Mathf.Min(module.minHeight, module.maxHeight);
var superGroup = planetGO.GetComponent<ProxyShadowCasterSuperGroup>(); var superGroup = planetGO.GetComponent<ProxyShadowCasterSuperGroup>();
if (superGroup != null) cubeSphere.AddComponent<ProxyShadowCaster>()._superGroup = superGroup; if (superGroup != null) cubeSphere.AddComponent<ProxyShadowCaster>()._superGroup = superGroup;