started parallax
This commit is contained in:
22
Assets/ScrollingBackg.cs
Normal file
22
Assets/ScrollingBackg.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ScrollingBackg : MonoBehaviour
|
||||
{
|
||||
public Camera camera;
|
||||
public SpriteRenderer renderer;
|
||||
public Vector2 scrollSpeed = Vector2.one * .4f;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user