Exemplo n.º 1
0
    private void OnEnable()
    {
        m_PreviewPosition = 0;
        m_MovingPlatform  = target as MovingPlatform;

        if (!EditorApplication.isPlayingOrWillChangePlaymode)
        {
            MovingPlatformPreview.CreateNewPreview(m_MovingPlatform);
        }
    }
Exemplo n.º 2
0
 private void OnDisable()
 {
     MovingPlatformPreview.DestroyPreview();
 }