blob: 2f547432c410d8206a4d0baac75b5135be32a568 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/// ProFlares - v1.08 - Copyright 2014-2015 All rights reserved - ProFlares.com
using UnityEngine;
using System.Collections;
public class RotateTransform : MonoBehaviour {
Transform thisTransform;
public Vector3 Speed = new Vector3(0,20f,0);
void Start () {
thisTransform = transform;
}
void Update () {
Quaternion offset = Quaternion.Euler(Speed * Time.deltaTime);
thisTransform.localRotation = thisTransform.localRotation*offset;
}
}
|