public void ListenToNoise(NoiseForTrigger na) { if (GetComponent <AITaskManager>() != null) { AIEVSound newSound = new AIEVSound(na); GetComponent <AITaskManager>().triggerEvent(newSound); } }
private void OnSound(AIEvent OnSound) { AIEVSound ev = (AIEVSound)OnSound; NoiseForTrigger nft = ev.Noise; if (nft != null && nft.noiseType == TriggerOnNoiseType) { TriggerTransition(); } }