move gameobject in unity 2d
transform.position = new Vector3(transform.position.x + movespeed, transform.position.y);
move gameobject in unity 2d
transform.position = new Vector3(transform.position.x + movespeed, transform.position.y);
how to move towards an object unity
//This will work for 2d or 3d platforms
//Make sure to call in Update or else it wont work
Vector3.MoveTowards(transform.position, taretPos, Qiaternion.identiy)
move to where it facing unity 2d
transform.up
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us