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

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