2025-09-19 15:51:50 +02:00
|
|
|
using System.Security.Cryptography.X509Certificates;
|
2025-10-14 15:53:58 +02:00
|
|
|
using Core;
|
2025-09-17 15:30:59 +02:00
|
|
|
using Pixelplacement;
|
2025-09-19 15:51:50 +02:00
|
|
|
using UnityEngine;
|
2025-09-11 10:44:01 +02:00
|
|
|
|
2025-09-17 15:30:59 +02:00
|
|
|
|
|
|
|
|
public class GardenerBehaviour : MonoBehaviour
|
2025-09-11 10:44:01 +02:00
|
|
|
{
|
2025-09-19 15:51:50 +02:00
|
|
|
private StateMachine stateMachineRef;
|
2025-09-11 10:44:01 +02:00
|
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
2025-09-19 15:51:50 +02:00
|
|
|
stateMachineRef = GetComponent<StateMachine>();
|
2025-09-11 10:44:01 +02:00
|
|
|
}
|
|
|
|
|
|
2025-09-19 15:51:50 +02:00
|
|
|
public void stateSwitch (string StateName)
|
|
|
|
|
{
|
2025-10-14 15:53:58 +02:00
|
|
|
Logging.Debug("State Switch to: " + StateName);
|
2025-09-19 15:51:50 +02:00
|
|
|
stateMachineRef.ChangeState(StateName);
|
|
|
|
|
}
|
2025-09-11 10:44:01 +02:00
|
|
|
}
|