28 lines
495 B
C#
28 lines
495 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class EndlessGenerator : MonoBehaviour
|
|
{
|
|
public GameObject[] blocks;
|
|
public Transform BlocksParent;
|
|
public float blockLength = 50;
|
|
public Transform Player;
|
|
|
|
void Start()
|
|
{
|
|
Initialze();
|
|
}
|
|
|
|
void Initialze(){
|
|
Player.position = new Vector3(0,Player.position.y,0);
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|