This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class SpriteStacking : MonoBehaviour | |
{ | |
public Sprite[] spriteFrames; | |
public float layerSpacing = 0.01f; | |
public float offset = 0.01f; // Add an offset between sprite layers | |
public float parallaxSpeed = 5f; | |
void Start() |