using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BubbleUp : MonoBehaviour
{
[SerializeField] private GameObject water;
private Vector3 _moveVelocity;
// Update is called once per frame
private void Update()
{
this.transform.position += new Vector3(0, 1, 0);
/*if (this.transform.position.y >= 200)
{
Destroy(gameObject);
}*/
}
private void OnTriggerExit(Collider collider)
{
Debug.Log("消去");
Destroy(gameObject);
}
}