Ejemplo n.º 1
0
 protected override void Releasing()
 {
     if (this.eventService != null)
     {
         this.eventService.EventRaise -= this.EventService_EventRaise;
     }
     if (this.guiService != null)
     {
         TutorialHighlightPanel guiPanel = this.guiService.GetGuiPanel <TutorialHighlightPanel>();
         if (guiPanel != null)
         {
             guiPanel.OnTutorialRelease();
         }
         TutorialInstructionPanel guiPanel2 = this.guiService.GetGuiPanel <TutorialInstructionPanel>();
         if (guiPanel2 != null)
         {
             guiPanel2.OnTutorialRelease();
         }
     }
     if (this.IsActive)
     {
         this.RestoreNotifications();
     }
     if (this.CommandService != null)
     {
         if (Amplitude.Unity.Framework.Application.Version.Accessibility <= Accessibility.Internal)
         {
             this.CommandService.UnregisterCommand("/Tutorial");
         }
         this.CommandService = null;
     }
     this.registers.Clear();
     base.Releasing();
     this.IsActive = false;
 }