Hey,
So I'm making a pretty simple RPG in Unity, but can't seem to find how to get the value of the y-axis. I have an open square platform (temporary) and want to be able to read the y-axis value, and set it to 2.7 if it reaches a certain point (say -7), along with setting the x-axis value to 0 (So you don't spawn on empty space and fall, to be stuck in a loop). This would mean falling off the platform doesn't require having to restart the game.
I appreciate any help. I'm new to Unity, but not to programming, or C#
Thanks,
Ovi