Started on the sound generator section of the soundbird puzzle, plus organized folders.
27 lines
613 B
C#
27 lines
613 B
C#
using System.Security.Cryptography.X509Certificates;
|
|
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>();
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
public void stateSwitch (string StateName)
|
|
{
|
|
Debug.Log("State Switch to: " + StateName);
|
|
stateMachineRef.ChangeState(StateName);
|
|
}
|
|
}
|