Hide Ana-Lyse's dialogue component when taking photo, also correctly restore a hidden state with the dialogu turned off

This commit is contained in:
Michal Pikulski
2025-11-24 11:07:46 +01:00
parent ff28bd23cb
commit f0abc4760b
5 changed files with 96 additions and 6 deletions

View File

@@ -6,7 +6,9 @@ namespace StateMachines.Quarry.AnneLise
{
public class AnneLiseBushBehaviour : MonoBehaviour
{
[SerializeField] private GameObject dialogueCanvas;
private AppleMachine _anneLiseBushStateMachine;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
@@ -16,6 +18,7 @@ namespace StateMachines.Quarry.AnneLise
public void TakePhoto()
{
dialogueCanvas?.SetActive(false);
_anneLiseBushStateMachine.ChangeState("TakePhoto");
}
}