add ProxyShadowCaster to groundsize

This commit is contained in:
JohnCorby 2023-08-07 19:24:15 -07:00
parent b50cc53a4d
commit 7846ae1161

View File

@ -30,6 +30,11 @@ namespace NewHorizons.Builder.Body
{
groundGO.transform.localScale *= 2; // Multiply by 2 to match top layer
}
var superGroup = planetGO.GetComponent<ProxyShadowCasterSuperGroup>();
// idk if we need to set _superGroup manually since it does that in Awake, but it's done everywhere else so wtv
if (superGroup != null) groundGO.AddComponent<ProxyShadowCaster>()._superGroup = superGroup;
groundGO.SetActive(true);
return groundGO;