Ejemplo n.º 1
0
    private void Start()
    {
        m_anchor       = GetComponent <DistanceJoint2D>();
        m_lineRenderer = GetComponent <LineRenderer>();

        m_anchorSystem = AnchorSystem.GetInstance();
        m_anchorSystem.RegisterAnchor(this);

        if (m_lineRenderer != null)
        {
            m_lineRenderer.positionCount = 2;
        }
    }
Ejemplo n.º 2
0
    private void Start()
    {
        m_anchor       = GetComponent <DistanceJoint2D>();
        m_lineRenderer = GetComponent <LineRenderer>();

        m_anchorSystem = AnchorSystem.GetInstance();
        m_anchorSystem.RegisterAnchor(this);

        if (m_lineRenderer != null)
        {
            m_lineRenderer.positionCount = 2;
        }

        anchorIndicator = this.transform.GetChild(0);
        anchorIndicator.gameObject.SetActive(false);
    }