Exemplo n.º 1
0
        private void OnTriggerEnter(Collider other)
        {
            IDying idying = other.GetComponent <IDying>();

            if (idying != null)
            {
                idying.Healing();
                Destroy(gameObject);
            }
        }