Advertisement
Bitheral

Credits.cs

Jun 27th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using TMPro;
  4. using UnityEngine.UI;
  5.  
  6.  
  7. public class Credits : MonoBehaviour
  8. {
  9. Camera camera;
  10. Vector3 cameraPos;
  11.  
  12. void Start() {
  13. camera = Camera.main;
  14. cameraPos = camera.gameObject.transform.position;
  15. }
  16.  
  17. void Update() {
  18. cameraPos.y++;
  19. cameraPos = camera.gameObject.transform.position;
  20. Debug.Log(cameraPos.y.ToString());
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement