Files
AppleHillsProduction/Assets/Scripts/Animation/BirdEyesBehavior.cs
Damian 9b590ca6ec Made Changes To slotted items (not fully functional but progressing)
Added Unity events to the Slotting Items, the eyes react fine but sometimes they fuck up. gonna check that out later.
2025-09-11 17:03:56 +02:00

39 lines
812 B
C#

using UnityEngine;
using Pixelplacement;
public class BirdEyesBehavior : MonoBehaviour
{
private StateMachine statemachine;
private Animator animator;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
statemachine = GetComponent<StateMachine>();
animator = GetComponentInChildren<Animator>();
}
// Update is called once per frame
void Update()
{
}
public void CorrectItem()
{
animator.SetTrigger("RightGuess");
}
public void IncorrectItem()
{
animator.SetTrigger("WrongGuess");
}
public void NoItem()
{
animator.SetTrigger("NoGuess");
}
public void BirdReveal()
{
statemachine.ChangeState ("BirdSpawned");
}
}