diff options
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 |