using System.Collections; using System.Collections.Generic; using UnityEngine; using InfallibleCode; public class PhotographChange : MonoBehaviour { public ExaminableItem examinableItem; Animator _photographAnimator; bool PhotographChanged; private void Start() { _photographAnimator = GetComponent(); examinableItem = GetComponentInParent(); } private void Update() { ChangePhotograph(); } void ChangePhotograph() { if(examinableItem.examineItem.CurrenltyExaminingObj && !PhotographChanged) { _photographAnimator.SetBool("IsAppearing", true); PhotographChanged = true; } } }