summaryrefslogtreecommitdiff
path: root/Assets/Art/Vfx/GrabSquaresEffect/Scripts/Point.cs
blob: b3932cc6cc0c950e09ac06a3827822ae0615c6b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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; }
        }
    }
}