Exemple #1
0
 void OnDestroy()
 {
     if (m_destroyed)
     {
         return;                         // Paranoia check
     }
     m_destroyed = true;
     VectorManager.DistanceRemove(m_objectNumber.i);
     if (m_useLine)
     {
         VectorLine.Destroy(ref m_vectorLine);
     }
 }
 void OnDestroy()
 {
     if (m_destroyed)
     {
         return;                         // Paranoia check
     }
     m_destroyed = true;
     VectorManager.VisibilityStaticRemove(m_objectNumber.i);
     if (m_dontDestroyLine)
     {
         return;
     }
     VectorLine.Destroy(ref m_vectorLine);
 }
Exemple #3
0
        IEnumerator DisableLine(VectorLine vectorLine, float time, bool remove)
        {
            yield return(new WaitForSeconds(time));

            if (remove)
            {
                RemoveLine(vectorLine);
            }
            else
            {
                RemoveLine(vectorLine);
                VectorLine.Destroy(ref vectorLine);
            }
            vectorLine = null;
        }