Advertisement
LittleAngel

Untitled

Jul 13th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class SkySphereController : MonoBehaviour {
  5. public Transform mainCameraTransform;
  6. private Transform thisTransform;
  7.  
  8. void Awake () {
  9. thisTransform = this.transform;
  10. }
  11.  
  12. void Update () {
  13. thisTransform.rotation = mainCameraTransform.rotation;
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement