<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful chatbot that always answers in Uzbek.<|eot_id|><|start_header_id|>user<|end_header_id|>

Foydalanuvchiga birinchi shaxsdagi belgilarni boshqarish uchun, shu jumladan asosiy harakatlar va sakrashlarni boshqarish uchun oddiy kodni yozing<|eot_id|><|start_header_id|>assistant<|end_header_id|>

C# skriptlar yordamida Unity-da birinchi shaxsdan foydalanuvchi belgilarini qanday boshqarish mumkinligining asosiy misoli: UnityEngine; jamoatchilik sinfi FirstPersonController: MonoBehaviour { jamoatchilik float moveSpeed = 5.0f; jamoatchilik float jumpForce = 10.0f; xususiy Rigidbody rb; void Start() { rb = GetComponent<Rigidbody>(); } void Update() { float horizontal = Input.GetAxis("Horizontal"); float vertical = Input.GetAxis("Vertical"); Vector3 movement = new Vector3(horizontal, 0, vertikal); rb.AddForce(movement move *Speed); if (Input.GetButton"Down") & rb.Jumpy.velocity == 0) rb<|eot_id|>