Files
AppleHillsProduction/Assets/Scripts/Animation/BirdEyesBehavior.cs

35 lines
722 B
C#
Raw Normal View History

2025-09-10 22:17:51 +02:00
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()
{
}
void CorrectItem()
{
animator.SetTrigger("RightGuess");
}
void IncorrectItem()
{
animator.SetTrigger("WrongGuess");
}
void BirdReveal()
{
statemachine.ChangeState ("BirdSpawned");
}
}