using System.Collections; using System.Collections.Generic; using UnityEngine; public class Klahvid1 : MonoBehaviour { // Start is called before the first frame update void Start() { } void Update() { if(Input.GetKeyDown(KeyCode.A)){ this.transform.position+=new Vector3(-1, 0, 0); } //Lisage klahvid mitmes suunas liikumiseks // Debug.Log(Input.mousePosition.x); } }