summaryrefslogtreecommitdiff
path: root/Assets/ProFlares/DemoScripts/TranslateCurve.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-04-25 19:13:28 +0800
committerchai <chaifix@163.com>2021-04-25 19:13:28 +0800
commit783a3c0dcfb80fa016953ff141e6de12e262525e (patch)
tree6c1873b309ef997b9e61af1eb2649b0c1d07f16b /Assets/ProFlares/DemoScripts/TranslateCurve.cs
parent08b84b4f21e650a1c8694c592442d508abeb39f0 (diff)
-proflares
Diffstat (limited to 'Assets/ProFlares/DemoScripts/TranslateCurve.cs')
-rw-r--r--Assets/ProFlares/DemoScripts/TranslateCurve.cs26
1 files changed, 0 insertions, 26 deletions
diff --git a/Assets/ProFlares/DemoScripts/TranslateCurve.cs b/Assets/ProFlares/DemoScripts/TranslateCurve.cs
deleted file mode 100644
index 32619ae..0000000
--- a/Assets/ProFlares/DemoScripts/TranslateCurve.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-/// ProFlares - v1.08 - Copyright 2014-2015 All rights reserved - ProFlares.com
-
-
-using UnityEngine;
-using System.Collections;
-
-namespace ProFlares {
- public class TranslateCurve : MonoBehaviour {
- Transform thisTransform;
- Vector3 pos;
- public float speed = 0.3f;
- public WrapMode wrapMode;
- public Vector3 axis = Vector3.one;
-
- public AnimationCurve Curve = new AnimationCurve(new Keyframe(0, 0.1f), new Keyframe(0.5f, 1.0f), new Keyframe(1.0f, 0.1f));
- void Start () {
- thisTransform = transform;
- pos = thisTransform.localPosition;
- Curve.postWrapMode = wrapMode;
- }
-
- void Update () {
- thisTransform.transform.localPosition = pos+(axis*Curve.Evaluate(Time.time*speed));
- }
- }
-}