PlaneRun/Assets/Scripts/playerPos.cs

21 lines
419 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class playerPos : MonoBehaviour
{
public Transform Player;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.position = new Vector3(Player.position.x, transform.position.y, Player.position.z);
}
}