Beispiel #1
0
    private void OnTriggerExit2D(Collider2D other)
    {
        ITouchable touchable = other.gameObject.GetComponent <ITouchable>();

        if (touchable != null)
        {
            touchable.Untouch();
        }
    }