public void notifyNPC() { FightFlight ff = GetComponent <FightFlight>(); if (ff != null) { ff.gotHit(); } }