using System.Collections; using System.Collections.Generic; using UnityEngine; public class KaameraLiikumine : MonoBehaviour { void Update() { float inputX = Input.GetAxis("Horizontal"); float inputZ = Input.GetAxis("Vertical"); transform.Rotate(new Vector3(0f, inputX * Time.deltaTime, 0f)*3); transform.position += transform.forward * inputZ * Time.deltaTime; } }