using Pixelplacement; using UnityEngine; using Core.SaveLoad; public class ButterflyFreeBehaviour : MonoBehaviour { public GameObject butterflyRef; private Animator butterflyAnimator; public PicnicBehaviour picnicRef; public void OnEnable() { if (butterflyRef != null) { butterflyAnimator = butterflyRef.GetComponentInChildren(); } butterflyAnimator.SetTrigger("IsFree"); picnicRef.EnterDistractedState(); Debug.Log("ButterflyFreeBehaviour enabled"); } }