duck

duck

Mar 10th, 2010
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. [Initialise Script:]
  2.  
  3. public static var cloudsRotation: Quaternion;
  4.  
  5.  
  6. [Rotate script]
  7.  
  8. function Awake()
  9. {
  10.      transform.rotation = CloudInitialise.cloudsRotation;
  11. }
  12.  
  13. function FixedUpdate () {
  14.      transform.Rotate(Vector3.up * 0.5 * Time.deltaTime);
  15. }
  16.  
  17. function OnDisable()
  18. {
  19.     CloudInitialise.cloudsRotation = transform.rotation;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment