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(); } // Update is called once per frame void Update() { } public void mowerTouched() { Debug.Log("Mower Touched"); } public void stateSwitch(string StateName) { Debug.Log("State Switch to: " + StateName); stateMachineRef.ChangeState(StateName); } }