Depending on how you are modifying the y, you should look at
Global:
//These two lines do the exact same thing.
transform.postition += new Vector3(0,5,0);
transform.Translate(0,5,0, Space.World):
Local:
//These two lines do the exact same thing.
transform.localPosition += new Vector3(0,5,0);
transform.Translate(0,5,0, Space.Self):
↧