Skip to content

Instantly share code, notes, and snippets.

@orange030
orange030 / ParallaxLayer.cs
Created July 14, 2012 11:13
Unity 2D Parallax Layer
using UnityEngine;
public class ParallaxLayer : MonoBehaviour
{
public Transform originalPosition;
public Transform layerPosition;
public float _xFator;
public float _yFator;