Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Initialise Script:]
- public static var cloudsRotation: Quaternion;
- [Rotate script]
- function Awake()
- {
- transform.rotation = CloudInitialise.cloudsRotation;
- }
- function FixedUpdate () {
- transform.Rotate(Vector3.up * 0.5 * Time.deltaTime);
- }
- function OnDisable()
- {
- CloudInitialise.cloudsRotation = transform.rotation;
- }
Advertisement
Add Comment
Please, Sign In to add comment