Generation

translateMon, 26 Dec 2022

move forward when i press the key Z

if (Input.GetKeyDown("z")) { transform.position += new Vector3(0, 0, 1); }

Want to kickstart your project?Use the new AI Studio to create your code