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; } }
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); }