using UnityEngine; using TMPro; public class Kuubik1 : MonoBehaviour { public TextMeshProUGUI tekst; public TMP_InputField sisestus; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { } // Update is called once per frame void Update() { } public void Paremale(){ this.transform.position+=new Vector3(1, 0, 0); Kuva(); } public void Kuva(){ tekst.text=sisestus.text+" asukoht: "+this.transform.position.x; } }