private void OnEnable() { m_PreviewPosition = 0; m_movingGhost = target as MovingGhost; if (!EditorApplication.isPlayingOrWillChangePlaymode) { MovingGhostPreview.CreateNewPreview(m_movingGhost); } }
private void OnDisable() { MovingGhostPreview.DestroyPreview(); }