diff options
author | chai <chaifix@163.com> | 2020-10-21 08:40:48 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-21 08:40:48 +0800 |
commit | 348306caec8f3c1aebee14523f7ae7d9b2c452b3 (patch) | |
tree | d2b28b4c3942e766a561bcad79e0d2ca4ad7b311 /Assets/Art/Vfx/GrabSquaresEffect/Scripts/Point.cs | |
parent | d94c73f535949b4f2eed41b1f6d0ced605664a08 (diff) |
+VFX
Diffstat (limited to 'Assets/Art/Vfx/GrabSquaresEffect/Scripts/Point.cs')
-rw-r--r-- | Assets/Art/Vfx/GrabSquaresEffect/Scripts/Point.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Assets/Art/Vfx/GrabSquaresEffect/Scripts/Point.cs b/Assets/Art/Vfx/GrabSquaresEffect/Scripts/Point.cs new file mode 100644 index 00000000..b3932cc6 --- /dev/null +++ b/Assets/Art/Vfx/GrabSquaresEffect/Scripts/Point.cs @@ -0,0 +1,21 @@ +using UnityEngine; + +namespace Assets.MoveableLineRenderer.Scripts +{ + internal sealed class Point + { + public Vector3 Position; + private readonly float _timeCreated; + + public Point(Vector3 position) + { + Position = position; + _timeCreated = Time.time; + } + + public float TimeAlive + { + get { return Time.time - _timeCreated; } + } + } +}
\ No newline at end of file |