summaryrefslogtreecommitdiff
path: root/Assets/ProFlares/DemoScripts/RotateTransform.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-04-21 21:52:56 +0800
committerchai <chaifix@163.com>2021-04-21 21:52:56 +0800
commit6d0c9a214dc0fda264e8588fa02aaa19b0b2cc5f (patch)
tree6a853a0b0cfb5818c864c3794cb58075876c07b0 /Assets/ProFlares/DemoScripts/RotateTransform.cs
+init
Diffstat (limited to 'Assets/ProFlares/DemoScripts/RotateTransform.cs')
-rw-r--r--Assets/ProFlares/DemoScripts/RotateTransform.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Assets/ProFlares/DemoScripts/RotateTransform.cs b/Assets/ProFlares/DemoScripts/RotateTransform.cs
new file mode 100644
index 0000000..2f54743
--- /dev/null
+++ b/Assets/ProFlares/DemoScripts/RotateTransform.cs
@@ -0,0 +1,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;
+ }
+
+}