using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class move1 : MonoBehaviour { public InputField x1, z1; public GameObject fb; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } public void show() { fb.transform.Translate(int.Parse(x1.text), 0, int.Parse(z1.text)); } }