GitBucket
Pull requests
Issues
Snippets
Sign in
mm2021
/
BubbleUp.cs
Fork
0
Created at Wed Jun 30 13:38:17 JST 2021
Download ZIP
HTTP
Embed
Embed this snippet in your website.
HTTP
Clone with Git using the repository's web address.
Code
Revision
Forks
s18h026
revised this
on 14 Jul 2021
daba13c
BubbleUp.cs
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); } }
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BubbleUp : MonoBehaviour { 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); } } }
s18h026
revised this
on 30 Jun 2021
09c80ac
BubbleUp.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BubbleUp : MonoBehaviour { 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); } } }