Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using TMPro;
- using UnityEngine.UI;
- public class Credits : MonoBehaviour
- {
- Camera camera;
- Vector3 cameraPos;
- void Start() {
- camera = Camera.main;
- cameraPos = camera.gameObject.transform.position;
- }
- void Update() {
- cameraPos.y++;
- cameraPos = camera.gameObject.transform.position;
- Debug.Log(cameraPos.y.ToString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement