WIP Butterfly can be set free, now only missing forcing the couple to look.
This commit is contained in:
19
Assets/Scripts/DamianExperiments/ButterflyFreeBehaviour.cs
Normal file
19
Assets/Scripts/DamianExperiments/ButterflyFreeBehaviour.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user