How to Trigger a Transition
Last updated
Last updated
using Ilumisoft.VisualStateMachine;
using UnityEngine;
public class TriggerExample : MonoBehaviour
{
//Reference to the state machine set via the inspector
[SerializeField] StateMachine stateMachine = null;
private void Update()
{
if(Input.GetKeyDown(KeyCode.S))
{
stateMachine.Trigger("Show Settings");
}
}
}