Exemple #1
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (isPushed)
        {
            return;
        }

        if (!isPushed)
        {
            Debug.Log("entering2");
            myRender.sprite = pushed;
            isPushed        = true;
            if (primManager.isInitialVertexNull())
            {
                primManager.setInitialVertex(vertexName);
            }
            primManager.connectedPort(vertexName, true);
        }
    }