Beispiel #1
0
    void OnTriggerStay2D(Collider2D collision)
    {
        DragDropCar drag = collision.GetComponent <DragDropCar> ();

        if (drag != null)
        {
            drag.barreira();
        }
    }
Beispiel #2
0
    void OnTriggerEnter2D(Collider2D collision)
    {
        DragDropCar drag = collision.GetComponent <DragDropCar> ();

        if (drag != null)
        {
            refLevelProgress.notifyDropCerto();
            drag._entrouDropPoint(true, transform.position);
        }
    }