WIP Butterfly can be set free, now only missing forcing the couple to look.

This commit is contained in:
2025-11-13 16:23:52 +01:00
parent c3639bbb93
commit c08fc4a720
6 changed files with 196 additions and 66 deletions

View File

@@ -0,0 +1,19 @@
using Pixelplacement;
using UnityEngine;
using Core.SaveLoad;
public class ButterflyFreeBehaviour : MonoBehaviour
{
public GameObject butterflyRef;
private Animator butterflyAnimator;
public void OnEnable()
{
if (butterflyRef != null)
{
butterflyAnimator = butterflyRef.GetComponentInChildren<Animator>();
}
butterflyAnimator.SetTrigger("IsFree");
Debug.Log("ButterflyFreeBehaviour enabled");
}
}