Cleaned up a bit

This commit is contained in:
journaliciouz
2025-12-11 21:20:30 +01:00
parent ca84414998
commit e98d10b2db

View File

@@ -7,11 +7,9 @@ public class GlowOutline : ManagedBehaviour
{ {
private SpriteRenderer parentSprite; private SpriteRenderer parentSprite;
private SpriteRenderer outlineSprite;
private Color outlineColor; private Color outlineColor;
private Transform[] childrenTransforms; private Transform[] childrenTransforms;
private SpriteRenderer[] childrenSprites; private SpriteRenderer[] childrenSprites;
private Material[] childrenMaterials;
private List<GlowOutlineData> outlineColors; private List<GlowOutlineData> outlineColors;
public float thiccness; public float thiccness;
@@ -30,7 +28,6 @@ public class GlowOutline : ManagedBehaviour
{ {
// Get references to item sprite, own sprite and the outline settings from Interaction Settings // Get references to item sprite, own sprite and the outline settings from Interaction Settings
outlineColors = SettingsAccess.GetInteractionOutlineColors(); outlineColors = SettingsAccess.GetInteractionOutlineColors();
outlineSprite = GetComponent<SpriteRenderer>();
// Get the transforms and spriterenderers of children // Get the transforms and spriterenderers of children
childrenTransforms = GetComponentsInChildren<Transform>(); childrenTransforms = GetComponentsInChildren<Transform>();