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(); animator = GetComponentInChildren(); } // Update is called once per frame void Update() { } void CorrectItem() { animator.SetTrigger("RightGuess"); } void IncorrectItem() { animator.SetTrigger("WrongGuess"); } void BirdReveal() { statemachine.ChangeState ("BirdSpawned"); } }