Fixed pantsless worker anims
This commit is contained in:
@@ -17,6 +17,7 @@ public class GlowOutline : ManagedBehaviour
|
||||
public float thiccness;
|
||||
public GlowOutlineData.InteractionType interactionType;
|
||||
public bool animatedSprite;
|
||||
public Material outlineMaterial;
|
||||
|
||||
|
||||
|
||||
@@ -35,7 +36,6 @@ public class GlowOutline : ManagedBehaviour
|
||||
// Get the transforms and spriterenderers of children
|
||||
childrenTransforms = GetComponentsInChildren<Transform>();
|
||||
childrenSprites = GetComponentsInChildren<SpriteRenderer>();
|
||||
// childrenMaterials = GetComponentsInChildren<Material>();
|
||||
|
||||
// Set the color to use in this outline from the colors set in Interaction Settings
|
||||
foreach (GlowOutlineData data in outlineColors)
|
||||
@@ -59,6 +59,7 @@ public class GlowOutline : ManagedBehaviour
|
||||
if (itemSprite.sprite != null)
|
||||
{
|
||||
childSprite.sprite = itemSprite.sprite;
|
||||
childSprite.material = outlineMaterial;
|
||||
|
||||
}
|
||||
if (childSprite.sharedMaterial != null)
|
||||
|
||||
Reference in New Issue
Block a user