2025-10-14 15:53:58 +02:00
|
|
|
using Core;
|
2025-09-21 07:32:56 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
using Pixelplacement;
|
|
|
|
|
|
|
|
|
|
public class LawnMowerBehaviour : 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
|
|
|
|
|
void Update()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public void mowerTouched()
|
|
|
|
|
{
|
2025-10-14 15:53:58 +02:00
|
|
|
Logging.Debug("Mower Touched");
|
2025-09-21 07:32:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void stateSwitch(string StateName)
|
|
|
|
|
{
|
2025-10-14 15:53:58 +02:00
|
|
|
Logging.Debug("State Switch to: " + StateName);
|
2025-09-21 07:32:56 +00:00
|
|
|
stateMachineRef.ChangeState(StateName);
|
|
|
|
|
}
|
|
|
|
|
}
|