Working gardener chase without flipping

This commit is contained in:
2025-09-19 15:51:50 +02:00
parent e1ee73bfb4
commit 6abf25b2ad
9 changed files with 2591 additions and 1234 deletions

View File

@@ -1,13 +1,15 @@
using UnityEngine;
using System.Security.Cryptography.X509Certificates;
using Pixelplacement;
using UnityEngine;
public class GardenerBehaviour : MonoBehaviour
{
private StateMachine stateMachineRef;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
stateMachineRef = GetComponent<StateMachine>();
}
// Update is called once per frame
@@ -15,4 +17,10 @@ public class GardenerBehaviour : MonoBehaviour
{
}
public void stateSwitch (string StateName)
{
Debug.Log("State Switch to: " + StateName);
stateMachineRef.ChangeState(StateName);
}
}