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