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