2025-12-17 22:02:45 +01:00
|
|
|
using Core.SaveLoad;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class AnimationEventWrapper : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public AppleMachine stateMachine;
|
|
|
|
|
|
|
|
|
|
public void ChangeState(string stateName)
|
|
|
|
|
{
|
|
|
|
|
if (stateMachine == null)
|
|
|
|
|
{
|
|
|
|
|
Debug.Log($"Error: No statemachine found on Animation Event Wrapper {name}");
|
|
|
|
|
}
|
|
|
|
|
if (stateMachine != null)
|
|
|
|
|
{
|
|
|
|
|
stateMachine.ChangeState(stateName);
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-12-17 22:38:08 +01:00
|
|
|
|
|
|
|
|
public void TrashManFinishedEating()
|
|
|
|
|
{
|
|
|
|
|
}
|
2025-12-17 22:02:45 +01:00
|
|
|
}
|