35 lines
942 B
C#
35 lines
942 B
C#
using Core.SaveLoad;
|
|
using Pixelplacement;
|
|
using UnityEngine;
|
|
|
|
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()
|
|
{
|
|
_anneLiseBushStateMachine = GetComponent<AppleMachine>();
|
|
}
|
|
|
|
public void TakePhoto()
|
|
{
|
|
dialogueCanvas?.SetActive(false);
|
|
_anneLiseBushStateMachine.ChangeState("TakePhoto");
|
|
|
|
foreach (GlowOutline outline in GetComponentsInChildren<GlowOutline>())
|
|
{
|
|
if (outline != null)
|
|
{
|
|
outline.gameObject.SetActive(false);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|