using System.Collections; using System.Collections.Generic; using UnityEngine; public class PeaLiikumine : MonoBehaviour { void Start() { } // Update is called once per frame void Update() { if(Input.GetKey(KeyCode.RightArrow)){ transform.Rotate(0, 0.1f, 0); } if(Input.GetKey(KeyCode.LeftArrow)){ transform.Rotate(0, -0.1f, 0); Debug.Log(transform.rotation.y); } if(Input.GetKey(KeyCode.UpArrow)){ transform.position+=0.01f*transform.forward; } } }