using System.Collections; using System.Collections.Generic; using UnityEngine; |
GetComponent<Rigidbody2D>().velocity |
using System.Collections; using System.Collections.Generic; using UnityEngine; public class NewBehaviourScript : MonoBehaviour { void Update () { transform.Translate (0, -0.1f, 0); if (transform.position.y < -9.3f ) { transform.position = new Vector3 (0, 9.3f, 0); } } } |
[Next Chapter ↓] Shooting-07
[Previous Chapter ↑] Shooting-05