Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Dominic : MonoBehaviour {
- public float speed = 1.0f;
- public float scale = 1.0f;
- public float rotate = 1.0f;
- public float timeRate = rotate * time.deltaTime;
- // Use this for initialization
- void Start () {
- }
- // Update is called once per frame
- void Update () {
- transform.position += Vector3.right * speed * Time.deltaTime;
- transform.localScale += Vector3.right * scale;
- transform.localScale += Vector3.up * scale;
- transform.rotation *= Quaternion.Euler( 3.0f * timeRate, 16.0f * timeRate, 5.0f * timeRate );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment