I'm making a 2d game in x + y. I need to completely lock out z- movement - stop it from occuring completely. How do I do this?
transform.position.z = 0;
Attach that in the Update Function of your script.