Exemplo n.º 1
0
    private void OnCollisionExit(Collision collision)
    {
        if (collision.collider.tag == "Orb")
        {
            Orb_Logic script = collision.collider.GetComponentInParent <Orb_Logic>();

            script.HighlightOrb(false);

            objectsInRange.Remove(script);
        }
    }
Exemplo n.º 2
0
    private void OnCollisionEnter(Collision collision)
    {
        if (collision.collider.tag == "Orb")
        {
            Orb_Logic script = collision.collider.GetComponentInParent <Orb_Logic>();

            script.HighlightOrb(true);

            objectsInRange.Add(script);
        }
    }