public void ReactToHit() { AIBehavior behavior = GetComponent <AIBehavior>(); if (behavior != null) { behavior.SetAlive(false); } StartCoroutine(Die()); }