Beispiel #1
0
        public bool TryGetDebugPositionsHistory(ref List <Vec3> p)
        {
            if (InputLock.TryEnterReadLock(0))
            {
                p = new List <Vec3>(m_DebugPositionsHistory);
                InputLock.ExitReadLock();
                return(true);
            }

            return(false);
        }
Beispiel #2
0
        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);
        }