示例#1
0
    //Priority- higher number = higher priority. Sight starts at 1, sound =0
    public static void TriggerSightAlert(Transform tr, int priority = 1)
    {
        List <IDetectSight> list = Ext.FindInterfaces <IDetectSight>();

        list.ForEach((x) => x.OnDetectSight(tr, priority));
    }
示例#2
0
    public static void TriggerSoundAlert(Vector3 position, float p)
    {
        List <IDetectSound> list = Ext.FindInterfaces <IDetectSound>();

        list.ForEach((x) => x.OnDetectSound(position, p));
    }