Move Object With Angle In 2D

Hello …

I am Developing 2D game in that I have Scene in x(horizontal)-y(vertical) Axis…

I want to move my Object From Y direction with Some random angle… But I am not getting idea about how can i translate object with angle…

So please Help me…

Thanks for your support and help…

If you want to rotate your object a certain angle, you should do something like this:

void Start () {
	
   // Initially object is facing up (Y-axis)
   transform.localRotation = Quaternion.Euler(Vector3.up);
}

	
public void Rotate(float angle)
{
   transform.Rotate(0, 0, angle);
}