put SupernovaVolumePlaceholder into correct layer so it doesnt complain

This commit is contained in:
JohnCorby 2022-06-08 12:22:20 -07:00
parent 664ee452cb
commit 68f2b3e402

View File

@ -134,6 +134,7 @@ namespace NewHorizons.Builder.Body
// It fucking insists on this existing and its really annoying
var supernovaVolume = new GameObject("SupernovaVolumePlaceholder");
supernovaVolume.transform.SetParent(starGO.transform);
supernovaVolume.layer = LayerMask.NameToLayer("BasicEffectVolume");
var sphere = supernovaVolume.AddComponent<SphereCollider>();
sphere.radius = 0f;
sphere.isTrigger = true;