31 lines
659 B
C#
31 lines
659 B
C#
using Core;
|
|
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()
|
|
{
|
|
Logging.Debug("Mower Touched");
|
|
}
|
|
|
|
public void stateSwitch(string StateName)
|
|
{
|
|
Logging.Debug("State Switch to: " + StateName);
|
|
stateMachineRef.ChangeState(StateName);
|
|
}
|
|
}
|