22 lines
550 B
C#
22 lines
550 B
C#
using System.Security.Cryptography.X509Certificates;
|
|
using Core;
|
|
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>();
|
|
}
|
|
|
|
public void stateSwitch (string StateName)
|
|
{
|
|
Logging.Debug("State Switch to: " + StateName);
|
|
stateMachineRef.ChangeState(StateName);
|
|
}
|
|
}
|