private void OnDestroy()
 {
     GlobalEventManager.UnregisterHandler("HideBack-" + name, Hide);
     GlobalEventManager.UnregisterHandler("ScaleView-" + name, Display);
     GlobalEventManager.UnregisterHandler("Split-" + name, Split);
     GlobalEventManager.UnregisterHandler("Combine-" + name, Combine);
 }
 public override void OnExit()
 {
     if (ignorePastEvent.Value)
     {
         GlobalEventManager.UnregisterHandler(eventName.Value, EventHandler);
     }
 }
 private void OnDestroy()
 {
     GlobalEventManager.UnregisterHandler("Hide-" + name, Hide);
     GlobalEventManager.UnregisterHandler("Display-" + name, Display);
     GlobalEventManager.UnregisterHandler("Highlight-" + name, HighlightInlayCore);
     GlobalEventManager.UnregisterHandler("Dehighlight-" + name, DeHighlightInlayCore);
     GlobalEventManager.UnregisterHandler("Focus-" + name, Focus);
 }
Beispiel #4
0
    private void OnDestroy()
    {
        if (singleton == this)
        {
            singleton = null;
        }

        GlobalEventManager.UnregisterHandler(GlobalEventManager.DrawUpClicked, OnClickDrawUp);
    }
Beispiel #5
0
    private void OnDestroy()
    {
        if (SceneInstance == this)
        {
            SceneInstance = null;
        }

        GlobalEventManager.UnregisterHandler("PortableMenu.Enable", EnablePortableMenu);
        GlobalEventManager.UnregisterHandler("PortableMenu.Disable", DisablePortableMenu);
    }
    protected override void OnDestroy()
    {
        GlobalEventManager.UnregisterHandler("VRPlayer.ResetPosition", ResetPosition);

        GlobalEventManager.UnregisterHandler("VRPlayer.EnableCamera", EnableCamera);
        GlobalEventManager.UnregisterHandler("VRPlayer.DisableCamera", DisableCamera);

        GlobalEventManager.UnregisterHandler("VRPlayer.EnableMovement", EnableMovement);
        GlobalEventManager.UnregisterHandler("VRPlayer.DisableMovement", DisableMovement);

        GlobalEventManager.UnregisterHandler("VRPlayer.EnableInteraction", EnableInteraction);
        GlobalEventManager.UnregisterHandler("VRPlayer.DisableInteraction", DisableInteraction);
    }
Beispiel #7
0
    protected override void OnDestroy()
    {
        if (VRPlayer.Instance != this)
        {
            return;
        }

        GlobalEventManager.UnregisterHandler("VRPlayer.ResetPosition", ResetPosition);

        GlobalEventManager.UnregisterHandler("VRPlayer.EnableCamera", EnableCamera);
        GlobalEventManager.UnregisterHandler("VRPlayer.DisableCamera", DisableCamera);

        GlobalEventManager.UnregisterHandler("VRPlayer.EnableMovement", EnableMovement);
        GlobalEventManager.UnregisterHandler("VRPlayer.DisableMovement", DisableMovement);

        GlobalEventManager.UnregisterHandler("VRPlayer.EnableInteraction", EnableInteraction);
        GlobalEventManager.UnregisterHandler("VRPlayer.DisableInteraction", DisableInteraction);

        GlobalEventManager.UnregisterHandler("VRPlayer.Camera.EnableSSAO", EnableSSAO);
        GlobalEventManager.UnregisterHandler("VRPlayer.Camera.DisableSSAO", DisableSSAO);

        GlobalEventManager.UnregisterHandler("VRPlayer.Camera.Shake", ShakeCamera);
    }
    private void OnDestroy()
    {
        Destroy(clickableIndicator);
        GlobalEventManager.UnregisterHandler("Highlight-" + name,
                                             Highlight
                                             );

        GlobalEventManager.UnregisterHandler("Dehighlight-" + name,
                                             Dehighlight
                                             );

        GlobalEventManager.UnregisterHandler("Lock-" + name,
                                             Lock
                                             );

        GlobalEventManager.UnregisterHandler("Unlock-" + name,
                                             Unlock
                                             );
        GlobalEventManager.UnregisterHandler("LookAt-" + name,
                                             LookAt
                                             );
        GlobalEventManager.UnregisterHandler("Hide-" + name, Hide);
        GlobalEventManager.UnregisterHandler("Display-" + name, Display);
    }
Beispiel #9
0
 void OnDestroy()
 {
     GlobalEventManager.UnregisterHandler("Unlock-" + name, EnableSlideInteraction);
     GlobalEventManager.UnregisterHandler("Lock-" + name, DisableSlideInteraction);
 }
 private void OnDisable()
 {
     GlobalEventManager.UnregisterHandler("GuidingSpeaker.StopSpeaking", StopSpeaking);
 }
 private void OnDisable()
 {
     GlobalEventManager.UnregisterHandler("TeacherVoiceSpeaker.StopSpeaking", StopSpeaking);
 }
 private void OnDisable()
 {
     GlobalEventManager.UnregisterHandler("internal_VRPlayer.Repositioned", Reposition);
 }
Beispiel #13
0
 private void OnDestroy()
 {
     GlobalEventManager.UnregisterHandler("Enable-" + name, EnableSlide);
 }
 private void OnDisable()
 {
     GlobalEventManager.UnregisterHandler("VRPlayer.EnableTransporting", EnableTransporting);
     GlobalEventManager.UnregisterHandler("VRPlayer.DisableTransporting", DisableTransporting);
 }
Beispiel #15
0
 private void OnDestroy()
 {
     GlobalEventManager.UnregisterHandler("Indicator-" + name + ".On", On);
     GlobalEventManager.UnregisterHandler("Indicator-" + name + ".Off", Off);
     GlobalEventManager.UnregisterHandler("Indicator-" + name + ".Switch", Switch);
 }
 private void OnDestroy()
 {
     GlobalEventManager.UnregisterHandler("Bottle.Explode", ExplodeChunks);
 }
Beispiel #17
0
 private void OnDestroy()
 {
     GlobalEventManager.UnregisterHandler("Teacher.GazePlayer", GazePlayer);
     GlobalEventManager.UnregisterHandler("Teacher.CancelGaze", CancelGaze);
     GlobalEventManager.UnregisterHandler("Teacher.DressUp", DressUp);
 }
 private void OnDestroy()
 {
     GlobalEventManager.UnregisterHandler(objectName + ".Highlight", ShowHighlight);
     GlobalEventManager.UnregisterHandler(objectName + ".Dehighlight", HideHighlight);
 }
 private void OnDisable()
 {
     GlobalEventManager.UnregisterHandler("RemotePanel.Show", Show);
     GlobalEventManager.UnregisterHandler("RemotePanel.Hide", Hide);
     GlobalEventManager.UnregisterHandler("internal_VRPlayer.Repositioned", ResetPosition);
 }
 private void OnDestroy()
 {
     GlobalEventManager.UnregisterHandler("VRPlayer.FreezeView", FreezeView);
     GlobalEventManager.UnregisterHandler("VRPlayer.UnfreezeView", UnfreezeView);
 }
Beispiel #21
0
 private void OnDestroy()
 {
     GlobalEventManager.UnregisterHandler("Door.Open", Open);
     GlobalEventManager.UnregisterHandler("Door.Close", Close);
 }
 private void OnDestroy()
 {
     GlobalEventManager.UnregisterHandler("VRPlayer.BeginTeleportingPredict", OnBeginTeleporting);
     GlobalEventManager.UnregisterHandler("VRPlayer.StopTeleportingPredict", OnStopTeleporting);
 }