Demo entry 6317073

Hola

   

Submitted by anonymous on Nov 05, 2016 at 00:00
Language: C#. Code size: 413 Bytes.

using UnityEngine;
using System.Collections;

public class Altimetro : MonoBehaviour {

    public TextMesh textAltura;
    public GameObject Helicoptero;

    float altura;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update ()
    {
        altura = Helicoptero.transform.position.y;
        textAltura.text = string.Format("{0:0.##}", altura);
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).