FiE-Game/Assets/TrailEffect/Effects/Trails/PCTrailPoint.cs
2023-07-26 16:38:51 +05:00

43 lines
647 B
C#

using System;
using UnityEngine;
namespace PigeonCoopToolkit.Effects.Trails
{
public class PCTrailPoint
{
public Vector3 Forward;
public Vector3 Position;
public int PointNumber;
private float _timeActive;
private float _distance;
public virtual void Update(float deltaTime)
{
this._timeActive += deltaTime;
}
public float TimeActive()
{
return this._timeActive;
}
public void SetTimeActive(float time)
{
this._timeActive = time;
}
public void SetDistanceFromStart(float distance)
{
this._distance = distance;
}
public float GetDistanceFromStart()
{
return this._distance;
}
}
}