private void OnDisable()
    {
        GameObject.Destroy(m_pathLineRenderer);
        GameObject.Destroy(m_sphereInput);
        GameObject.Destroy(m_sphereOutput);

        Api.Instance.PositionerApi.OnPositionerTransformedPointChanged -= OnPositionerTransformedPointChanged;

        foreach (var positioner in m_positionersForPathPoints)
        {
            positioner.Discard();
        }

        if (m_positionerForQueryPoint != null)
        {
            m_positionerForQueryPoint.Discard();
        }

        if (m_positionerForResultPoint != null)
        {
            m_positionerForResultPoint.Discard();
        }

        m_positionersForPathPoints = null;
        m_positionerForQueryPoint  = null;
        m_positionerForResultPoint = null;
    }
    private void OnDisable()
    {
        viewPositioner.OnScreenPointChanged -= OnPositionerPositionUpdated;
        viewPositioner.Discard();

        Api.Instance.IndoorMapsApi.OnIndoorMapEntered -= IndoorMapsApi_OnIndoorMapEntered;
    }
 public void OnDisable()
 {
     viewPositioner.OnPositionerPositionChangedDelegate -= OnPositionerPositionChanged;
     viewPositioner.Discard();
 }
Пример #4
0
 private void OnDisable()
 {
     boxPositioner.OnPositionerPositionChangedDelegate -= OnPositionerPositionUpdated;
     boxPositioner.Discard();
 }
Пример #5
0
 public void OnDisable()
 {
     viewPositioner.OnScreenPointChanged -= OnPositionerPositionChanged;
     viewPositioner.Discard();
 }
 private void OnDisable()
 {
     boxPositioner.OnTransformedPointChanged -= OnPositionerPositionUpdated;
     boxPositioner.Discard();
 }