print the position of another object in Unity
void Update () {
var gObj = GameObject.Find("Player");
Debug.Log(gObj.transform.position);
}
Basic concept of endless scroller, not sure the code works exactly and is current, but basic concept:
using UnityEngine;
using System.Collections;
public class GroundSpawner : MonoBehaviour {