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; } } } }