From 348306caec8f3c1aebee14523f7ae7d9b2c452b3 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 21 Oct 2020 08:40:48 +0800 Subject: +VFX --- Assets/Art/Vfx/GrabSquaresEffect/Scripts/Point.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Assets/Art/Vfx/GrabSquaresEffect/Scripts/Point.cs (limited to 'Assets/Art/Vfx/GrabSquaresEffect/Scripts/Point.cs') 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 -- cgit v1.1-26-g67d0