public override void ConstantUpdate() { base.ConstantUpdate(); if (!this.m_Active) { return; } Player player = Player.Get(); if (player.IsDead() || SwimController.Get().IsActive() || player.m_DreamActive) { this.Deactivate(false); return; } if (BodyInspectionMiniGameController.Get().IsActive()) { this.Deactivate(false); return; } if (CutscenesManager.Get().IsCutscenePlaying()) { this.Deactivate(false); return; } if (Input.GetMouseButtonDown(0)) { this.Execute(); this.m_Active = false; base.Show(false); } }
protected override void OnShow() { base.OnShow(); if (this.m_BIMController == null) { this.m_BIMController = BodyInspectionMiniGameController.Get(); } }
private void UpdateAimVisibility() { bool active = this.m_ShowCrosshair && !Inventory3DManager.Get().gameObject.activeSelf&& !BodyInspectionController.Get().IsActive() && !HUDWheel.Get().enabled&& !HUDNewWheel.Get().enabled&& !BodyInspectionMiniGameController.Get().IsActive(); this.m_CrosshairLeft.gameObject.SetActive(active); this.m_CrosshairRight.gameObject.SetActive(active); this.m_Crosshair_Down.gameObject.SetActive(active); }
protected override bool ShouldShow() { return(!(BodyInspectionMiniGameController.Get() == null) && BodyInspectionMiniGameController.Get().enabled); }
private bool CanShowMenuInGame() { return(!GreenHellGame.ROADSHOW_DEMO && !this.m_CurrentScreen && !Inventory3DManager.Get().gameObject.activeSelf&& !NotepadController.Get().enabled&& !MapController.Get().enabled&& !BodyInspectionController.Get().enabled&& !BodyInspectionMiniGameController.Get().enabled&& (!HUDEndDemo.Get() || !HUDEndDemo.Get().enabled) && !CutscenesManager.Get().IsCutscenePlaying() && !HUDStartSurvivalSplash.Get().m_Active); }
public void Activate() { if (CutscenesManager.Get().IsCutscenePlaying()) { return; } if (base.gameObject.activeSelf) { return; } if (BodyInspectionMiniGameController.Get().IsActive()) { return; } if (VomitingController.Get().IsActive()) { return; } if (SwimController.Get().IsActive()) { return; } if (ConsciousnessController.Get().IsActive()) { return; } if (WatchController.Get().IsActive()) { return; } if (SleepController.Get().IsActive()) { return; } if (InsectsController.Get().IsActive()) { return; } if (HarvestingAnimalController.Get().IsActive()) { return; } if (HarvestingSmallAnimalController.Get().IsActive()) { return; } if (Player.Get().IsDead()) { return; } if (HitReactionController.Get().IsActive()) { return; } if (TriggerController.Get().IsGrabInProgress()) { return; } if (HUDMovie.Get().enabled&& HUDMovie.Get().gameObject.activeSelf) { return; } if (Player.Get().m_Aim || Time.time - Player.Get().m_StopAimTime < 0.5f) { return; } base.gameObject.SetActive(true); this.BlockPlayerRotation(true); if (!Player.Get().m_BodyInspectionController.IsActive() && !CraftingManager.Get().gameObject.activeSelf) { Player.Get().StartController(PlayerControllerType.Inventory); if (Player.Get().m_ControllerToStart != PlayerControllerType.Unknown) { Player.Get().StartControllerInternal(); } } this.m_Camera.enabled = true; this.m_Canvas.gameObject.SetActive(true); CursorManager.Get().ShowCursor(true); HUDManager.Get().SetActiveGroup(HUDManager.HUDGroup.Inventory3D); this.m_CarriedItem = null; this.SetupPocket(this.m_ActivePocket); Player.Get().m_BackpackWasOpen = true; if (BodyInspectionController.Get().IsActive()) { HintsManager.Get().ShowHint("Inspection_Backpack", 10f); } this.m_ActivityChanged = true; }