Ejemplo n.º 1
0
        private void OnEnable()
        {
            m_PreviewPosition       = 0;
            m_ObjectMovingAlongPath = target as ObjectMovingAlongPath;

            if (!EditorApplication.isPlayingOrWillChangePlaymode)
            {
                ObjectMovingAlongPathPreview.CreateNewPreview(m_ObjectMovingAlongPath);
            }
        }
Ejemplo n.º 2
0
 private void OnDisable()
 {
     ObjectMovingAlongPathPreview.DestroyPreview();
 }