📅  最后修改于: 2022-03-11 14:49:03.495000             🧑  作者: Mango
using UnityEngine;
using System.Collections;
public class respawn : MonoBehaviour {
public float threshold;
void FixedUpdate () {
if (transform.position.y < threshold)
transform.position = new Vector3(0, 0, 0);
}
}