Langsung ke konten utama

Postingan

Menampilkan postingan dari September, 2022

kuk

Kabel using System . Collections . Generic ; using UnityEngine ;   public class gerak : MonoBehaviour {     public float c;     public float f;       public Rigidbody rb;           // Start is called before the first frame update     void Start ()     {         rb = GetComponent < Rigidbody >();     }       // Update is called once per frame     void Update ()     {         if (Input. GetKey (KeyCode.A)){             // rb.transform.position = new Vector3(transform.position.x - c * Time.deltaTime, transform.position.y, transform.position.z);             rb.transform.position = new Vector3 (transform.position.x - c , transform.position.y, transform.position.z);         } ...