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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user