Finished secretary

This commit is contained in:
2025-12-02 14:49:55 +01:00
parent 8da24e3ea3
commit 2589e56bda
129 changed files with 16110 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
using UnityEngine;
using Core.Lifecycle;
using Core.SaveLoad;
public class AnimationEvents : ManagedBehaviour
{
[HideInInspector]
public AppleMachine stateMachine;
internal override void OnManagedAwake()
{
stateMachine = GetComponentInParent<AppleMachine>();
if (stateMachine == null)
{
Debug.Log($"[AnimationEvent] Animated state {name} does not have a valid state machine!");
}
}
public void AnimSwitchState(string stateToGoTo)
{
stateMachine.ChangeState(stateToGoTo);
}
}