private void EventService_EventRaise(object sender, EventRaiseEventArgs e) { if (e.RaisedEvent is EventBeginTurn) { TutorialInstructionPanel.Show(TutorialInstructionPanel.WaitingInstruction.Title, TutorialInstructionPanel.WaitingInstruction.Content, TutorialInstructionPanel.WaitingInstruction.Action, TutorialInstructionPanel.WaitingInstruction.Modal, TutorialInstructionPanel.WaitingInstruction.WheelGrabber, TutorialInstructionPanel.WaitingInstruction.DisplayNextButton, TutorialInstructionPanel.WaitingInstruction.OverNotifications, TutorialInstructionPanel.WaitingInstruction.OverModals, TutorialInstructionPanel.WaitingInstruction.WaitForPanelTypeName, TutorialInstructionPanel.WaitingInstruction.WaitForPanelName, TutorialInstructionPanel.WaitingInstruction.Placement); this.eventService.EventRaise -= this.EventService_EventRaise; if (!string.IsNullOrEmpty(TutorialHighlightPanel.WaitingHighlight.TargetName)) { AgeTransform ageTransform = null; Amplitude.Unity.Gui.GuiPanel guiPanel = null; if (this.guiService.TryGetGuiPanelByName(TutorialHighlightPanel.WaitingHighlight.TargetName, out guiPanel) && guiPanel != null) { ageTransform = guiPanel.AgeTransform; } else { Transform transform = (this.guiService as global::GuiManager).transform.Search(TutorialHighlightPanel.WaitingHighlight.TargetName); if (transform != null) { ageTransform = transform.GetComponent <AgeTransform>(); } } if (ageTransform != null) { TutorialHighlightPanel.ShowHighlight(TutorialHighlightPanel.WaitingHighlight.Content, ageTransform, TutorialHighlightPanel.WaitingHighlight.RectangularHighlight); } else { Diagnostics.LogWarning("Could not restore highlight on: " + TutorialHighlightPanel.WaitingHighlight.TargetName); } } } }
private void OnInspectCB(GameObject obj) { if (this.guiNotification is GuiNotificationHeroLevelUp) { Amplitude.Unity.Gui.GuiPanel guiPanel = base.GuiService.GetGuiPanel <HeroInspectionModalPanel>(); object[] array = new object[2]; array[0] = this.FetchHero(); guiPanel.Show(array); return; } base.GuiService.GetGuiPanel <HeroInspectionModalPanel>().Show(new object[] { this.FetchHero() }); }