Files
AppleHillsProduction/Assets/Scripts/DamianExperiments/ButterflyFreeBehaviour.cs

22 lines
551 B
C#
Raw Normal View History

using Pixelplacement;
using UnityEngine;
using Core.SaveLoad;
public class ButterflyFreeBehaviour : MonoBehaviour
{
public GameObject butterflyRef;
private Animator butterflyAnimator;
2025-11-14 00:04:33 +01:00
public PicnicBehaviour picnicRef;
public void OnEnable()
{
if (butterflyRef != null)
{
butterflyAnimator = butterflyRef.GetComponentInChildren<Animator>();
}
butterflyAnimator.SetTrigger("IsFree");
2025-11-14 00:04:33 +01:00
picnicRef.EnterDistractedState();
Debug.Log("ButterflyFreeBehaviour enabled");
}
}