Butterfly Distraction

This commit is contained in:
DamianCorazza
2025-11-14 00:04:33 +01:00
parent c08fc4a720
commit 19be64a75f
8 changed files with 452 additions and 39 deletions

View File

@@ -5,6 +5,7 @@ public class ButterflyFreeBehaviour : MonoBehaviour
{
public GameObject butterflyRef;
private Animator butterflyAnimator;
public PicnicBehaviour picnicRef;
public void OnEnable()
{
if (butterflyRef != null)
@@ -12,6 +13,7 @@ public class ButterflyFreeBehaviour : MonoBehaviour
butterflyAnimator = butterflyRef.GetComponentInChildren<Animator>();
}
butterflyAnimator.SetTrigger("IsFree");
picnicRef.EnterDistractedState();
Debug.Log("ButterflyFreeBehaviour enabled");
}