void OnTriggerEnter2D(Collider2D collision) { Fireball fireball = collision.GetComponent <Fireball>(); if (fireball != null) { fireball.Destroyed(); StartCoroutine(Damaged(fireball.GetDamage())); } }