Here is my code If your wondering I’m making a 3D game about a player dodging blocks.
using UnityEngine;
public class RSet : MonoBehaviour
{
public GameObject player = null;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if(player.transform.player.y < 0) {
player.transform.position = Vector3(0,1,0);
}
}
}
,This is my code…
using UnityEngine;
public class RSet : MonoBehaviour
{
public GameObject player = null;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if(player.transform.player.y < 0) {
player.transform.position = Vector3(0,1,0);
}
}
}