I am trying to scale a ship reletive to a variable starting position. It will rotate to a given degree and scale down to a min size then right its rotation. Same when you press the oposite button coming back to scale.
here is what i have so far. How do i scale this correctly? This script will scale my ship, but unlike the rotation script, it scales without pressing the button.
void Update()
{
float rotation = Input.GetAxis(“Vertical”) * force;
float scale = Input.GetAxis (“Vertical”) * force;
scale *= Time.deltaTime;
rotation *= Time.deltaTime;
transform.localScale += new Vector3(0.1F,0.1f, 0.1f);
transform.Rotate(0, 0, rotation);
}