using System.Collections; using System.Collections.Generic; using UnityEngine; public class HeliMove : MonoBehaviour { float y; // Use this for initialization void Start () { y = 2.5f; this.transform.position = new Vector3(0, y, 0); } // Update is called once per frame void Update () { y -= 0.01f; if (y < -2.5f) y = 2.5f; this.transform.position = new Vector3(0, y, 0); } }