35 lines
722 B
C#
35 lines
722 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()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
void CorrectItem()
|
||
|
|
{
|
||
|
|
animator.SetTrigger("RightGuess");
|
||
|
|
}
|
||
|
|
|
||
|
|
void IncorrectItem()
|
||
|
|
{
|
||
|
|
animator.SetTrigger("WrongGuess");
|
||
|
|
}
|
||
|
|
void BirdReveal()
|
||
|
|
{
|
||
|
|
statemachine.ChangeState ("BirdSpawned");
|
||
|
|
}
|
||
|
|
}
|