示例#1
0
 public void ListenToNoise(NoiseForTrigger na)
 {
     if (GetComponent <AITaskManager>() != null)
     {
         AIEVSound newSound = new AIEVSound(na);
         GetComponent <AITaskManager>().triggerEvent(newSound);
     }
 }
示例#2
0
文件: TROnSound.cs 项目: sdasd30/TSSG
    private void OnSound(AIEvent OnSound)
    {
        AIEVSound       ev  = (AIEVSound)OnSound;
        NoiseForTrigger nft = ev.Noise;

        if (nft != null && nft.noiseType == TriggerOnNoiseType)
        {
            TriggerTransition();
        }
    }