public bool TryGetDebugPositionsHistory(ref List <Vec3> p) { if (InputLock.TryEnterReadLock(0)) { p = new List <Vec3>(m_DebugPositionsHistory); InputLock.ExitReadLock(); return(true); } return(false); }
public bool TryGetBackTrackPath(ref List <Vec3> p) { if (InputLock.TryEnterReadLock(0)) { p = new List <Vec3>(m_DestinationsHistory); p.Reverse(); InputLock.ExitReadLock(); return(true); } return(false); }