using UnityEngine;
using System.Collections;
public class BGLooper : MonoBehaviour {
int numBGPanels = 6;
float PipeMax = 6.19;**ERROR**
float PipeMin = 3.86;**ERROR**
void OnTriggerEnter2D(Collider2D collider){
Debug.Log ("Triggered: " + collider.name);
float widthofBGObject = ((BoxCollider2D)collider).size.x;
Vector3 pos = collider.transform.position;
pos.x +=widthofBGObject * numBGPanels;
if(Collider.tag == "Pipe") {**Maybe ERROR**
pos.y = Random.Range(PipeMin, PipeMax);**Maybe ERROR**
}
collider.transform.position = pos ;
}
}