Skip to content

Commit

Permalink
feat(Investigation): Actors reappear when returning to the investigat…
Browse files Browse the repository at this point in the history
…ion main menu after `Examine` or an `Examine` sub story (#492)
  • Loading branch information
ViMaSter authored Sep 25, 2024
1 parent cd1178c commit 44a1f52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unity-ggjj/Assets/Scripts/GameState/InvestigationState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ public void OnCursorSelect(InputAction.CallbackContext context)
_narrativeGameState.AppearingDialogueController.TextBoxHidden = true;
_examinedDetails.Add($"{_narrativeGameState.SceneController.ActiveSceneName}_{_hoveredDetail.NarrativeScriptToPlay.name}");
_hoveredDetail.AttemptPickUp();
_narrativeGameState.ActorController.SetVisibility(true, null);
};
}

Expand Down Expand Up @@ -233,6 +234,7 @@ public void OpenExaminationMenu()
public void QuitExamination()
{
Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
_narrativeGameState.ActorController.SetVisibility(true, null);
_investigationMainMenuOpener.OpenMenu();
}
#endregion
Expand Down

0 comments on commit 44a1f52

Please sign in to comment.