Added animations, two state machines

This commit is contained in:
2025-09-10 22:17:51 +02:00
parent e7c950480f
commit 1c987af2b8
40 changed files with 4632 additions and 288 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 180b429b297df4e46b69598de96e21f4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,34 @@
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");
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 13d59d3c42170824b8f92557822d9bf0

View File

@@ -0,0 +1,26 @@
using UnityEngine;
using Pixelplacement;
public class GardenerChaseBehavior : MonoBehaviour
{
public Spline ChaseSpline;
public Transform GardenerObject;
public float chaseDuration;
public float chaseDelay;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
Tween.Spline (ChaseSpline, GardenerObject, 0, 1, false, chaseDuration, chaseDelay, Tween.EaseInOut, Tween.LoopType.PingPong);
}
void Awake()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: abefccb95d18f534f81d5158b8fc721f