Update SupernovaEffectBuilder.cs

This commit is contained in:
Noah 2022-08-19 23:05:36 -04:00 committed by GitHub
parent 41ba319e74
commit be39d64bb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,7 @@ namespace NewHorizons.Builder.Body
if (mesh != null)
{
shockLayer.GetComponent<MeshFilter>().sharedMesh = mesh;
shockLayer.transform.localScale = Vector3.one;
shockLayer.transform.localScale = Vector3.one * (config.ShockEffect.radius != null ? config.ShockEffect.radius : 1);
shockLayer.transform.rotation = Quaternion.Euler(0, 0, 0);
}
}