Exemplo n.º 1
0
    void OnTriggerExit2D(Collider2D other)
    {
        ControlScript yeti = other.gameObject.GetComponent <ControlScript>();

        if (yeti != null)
        {
            yeti.DeactivateShelter();
        }
    }