Guest User

Untitled

a guest
Jan 17th, 2011
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Dominic : MonoBehaviour {
  5.     public float speed = 1.0f;
  6.     public float scale = 1.0f;
  7.     public float rotate = 1.0f;
  8.     public float timeRate = rotate * time.deltaTime;
  9.  
  10.     // Use this for initialization
  11.     void Start () {
  12.    
  13.     }
  14.    
  15.     // Update is called once per frame
  16.     void Update () {
  17.     transform.position += Vector3.right * speed * Time.deltaTime;
  18.     transform.localScale += Vector3.right * scale;
  19.     transform.localScale += Vector3.up * scale;
  20.     transform.rotation *= Quaternion.Euler( 3.0f * timeRate, 16.0f * timeRate, 5.0f * timeRate );
  21.  
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment