tag不存在或已被下架!
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class stay : MonoBehaviour
{
// Start is called before the first frame update
void Start() {}
// Update is called once per frame
void Update()
{
transform.position = new Vector3(Mathf.Clamp(transform.position.x, -38.5f, 76.5f), Mathf.Clamp(transform.position.y, 1.3f, 22.0f), transform.position.z);
}
}