- Home /
Moving cam to upwards ?
hello
I'm trying move cam automatically to up and also move player joint with camera.
how can I do this ?
I'm trying this.
public class MoveCam : MonoBehaviour {
public GameObject player;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.Translate(Vector2.up * .5f * Time.deltaTime);
player.transform.parent = transform;
}
}
Comment
Can you describe the current behavior in your game as a result of the script you posted here?
a.k.a what's wrong with what you're trying?
now works. I had not added script in $$anonymous$$ain Camera. Thanks !
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Pinch zoom 0 Answers
How can I display text so that it can be see on the Vive Headset? 0 Answers