Script that allows a player to rotate a game object using the left and right arrow keys. The object should rotate left when the left arrow is pressed and right when the right arrow is pressed.

using UnityEngine; public class ObjectRotate : MonoBehaviour { public float rotationSpeed = 90f; private void Update() { if (Input.GetKey(KeyCode.LeftArrow)) { transform.Rotate(Vector3.up, -rotationSpeed * Time.deltaTime); } if (Input.GetKey(KeyCode.RightArrow)) { transform.Rotate(Vector3.up, rotationSpeed…

Script that allows a player to change the size of a game object using the arrow keys. The object should grow larger when the up arrow is pressed and shrink when the down arrow is pressed.

using UnityEngine; public class ObjectResize : MonoBehaviour { public float resizeSpeed = 0.1f; private void Update() { if (Input.GetKey(KeyCode.UpArrow)) { transform.localScale += Vector3.one * resizeSpeed * Time.deltaTime; } if (Input.GetKey(KeyCode.DownArrow))…