C# state machine component for Unity.