public static void InitializeTrigger(VRC.SDKBase.VRC_Trigger trigger)
        {
            CyanEmuTriggerHelper helper = trigger.gameObject.AddComponent <CyanEmuTriggerHelper>();

            helper.SetTrigger(trigger as VRC_Trigger);
            trigger.ExecuteTrigger = helper.ExecuteTrigger;
        }
Beispiel #2
0
        public static void InitializeTrigger(VRC.SDKBase.VRC_Trigger trigger)
        {
            CyanEmuTriggerHelper helper = trigger.gameObject.AddComponent <CyanEmuTriggerHelper>();

            helper.SetTrigger(trigger as VRC_Trigger);

            if (trigger.ExecuteTrigger == null)
            {
                trigger.ExecuteTrigger = new Action <VRC_Trigger.TriggerEvent>(helper.ExecuteTrigger);
            }
        }