Fixed issue with TrackedObject AvgTimeBetweenPoints
This commit is contained in:
parent
2e1805a041
commit
ace1cee70e
@ -37,6 +37,8 @@ namespace MLAPI.MonoBehaviours.Core
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
if (Framekeys.First == null || Framekeys.Last == null)
|
||||||
|
return 0;
|
||||||
float totalSpan = Framekeys.Last.Value - Framekeys.First.Value;
|
float totalSpan = Framekeys.Last.Value - Framekeys.First.Value;
|
||||||
return (totalSpan / Framekeys.Count) * 1000f;
|
return (totalSpan / Framekeys.Count) * 1000f;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user