示例#1
0
 private void Awake()
 {
     eventHandler = this.GetComponent <VRC_EventHandler>();
     if (eventHandler == null)
     {
         eventHandler = this.GetComponentInParent <VRC_EventHandler>();
     }
 }
示例#2
0
        }        //IL_000d: Unknown result type (might be due to invalid IL or missing references)

        //IL_0012: Unknown result type (might be due to invalid IL or missing references)


        private void Start()
        {
            Handler = this.GetComponent <VRC_EventHandler>();
            if (Handler == null)
            {
                Handler = this.GetComponentInParent <VRC_EventHandler>();
            }
        }
示例#3
0
        public override void Interact()
        {
            VRC_EventHandler vRC_EventHandler = this.GetComponent <VRC_EventHandler>();

            if (vRC_EventHandler == null)
            {
                vRC_EventHandler = this.GetComponentInParent <VRC_EventHandler>();
            }
            if (vRC_EventHandler != null)
            {
                vRC_EventHandler.TriggerEvent(EventName, BroadcastType, Networking.LocalPlayer.get_gameObject());
            }
        }
示例#4
0
 private void Start()
 {
     if (this.GetComponentInParent <VRC_PlayerApi>() != null || this.GetComponent <VRC_PlayerApi>() != null)
     {
         Object.Destroy(this);
     }
     if (Initialize != null)
     {
         Initialize(this);
     }
     Handler = this.GetComponent <VRC_EventHandler>();
     if (Handler == null)
     {
         Handler = this.GetComponentInParent <VRC_EventHandler>();
     }
 }
示例#5
0
 public override void UnregisterEventHandler(VRC_EventHandler handler)
 {
 }
示例#6
0
 public override void TriggerEvent(VRC_EventHandler handler, VRC_EventHandler.VrcEvent e, VRC_EventHandler.VrcBroadcastType broadcast, int instagatorId, float fastForward)
 {
 }
示例#7
0
 public abstract void UnregisterEventHandler(VRC_EventHandler handler);