I want to keep the Circle object going up in the y-axis direction. It worked well in the x-axis direction, but when I changed the character to the y-axis, the circle did not move. What's wrong?
unity visual-studio
I don't know UNI.T or C, but I know how to search official documents so I took a quick look.
public Vector2(float x, float y);
Generates a new vector for a given x, y component.
If so, what you want:
tr.position = new Vector2(0, tr.position.y + 0.01f)
© 2024 OneMinuteCode. All rights reserved.