Project_Exigent/Assets/Scripts/EndlessGenerator.cs
2022-08-30 14:06:45 +05:30

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()
{
}
}