Advertisement
NPSF3000

CameraCenter

May 30th, 2011
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class CenterCamera : MonoBehaviour
  5. {
  6.     // Update is called once per frame
  7.     void Update()
  8.     {
  9.         if (Input.GetKeyDown(KeyCode.C))
  10.         {
  11.             transform.position = new Vector3(0, 1, -10);
  12.             transform.rotation = Quaternion.identity;
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement