Beispiel #1
0
        private void OnEnable()
        {
            m_PreviewPosition       = 0;
            m_ObjectMovingAlongPath = target as ObjectMovingAlongPath;

            if (!EditorApplication.isPlayingOrWillChangePlaymode)
            {
                ObjectMovingAlongPathPreview.CreateNewPreview(m_ObjectMovingAlongPath);
            }
        }
Beispiel #2
0
 private void OnDisable()
 {
     ObjectMovingAlongPathPreview.DestroyPreview();
 }