Questions tagged [statemachine]
The statemachine tag has no usage guidance.
6
questions
1
vote
1
answer
52
views
Unity hierarchical state machines and SOLID principles questions
i was wondering if you could help me out with some confusion i have over state machines and SOLID principles! sorry if the post gets too long, i'll try to keep things simple! So i have a huge player ...
1
vote
0
answers
137
views
I'm trying to create a hierarchical state machine, but don't understand how to transition to a superstate
I have a CharacterController that implements a StateMachine that uses a number of states and transitions. The ...
0
votes
0
answers
34
views
effect and ability activation in state system?
First time that i am making a text based card game, the main code here is starting to feel a bit clunky.This is a turn-based/phase based system where an effect/ability activates in a specific state/...
0
votes
0
answers
134
views
State machine in C for SDL game
I want to create a state machine for menu in my SDL game. So this is my code without the SDL I just want to ask if this is a good way to create it.
here is a code:
...
0
votes
0
answers
295
views
Why a method call in OnStateEnter and OnStateExit do not invoke in the correct order?
I have a class that extends from StateMachineBehaviour. All I want to do is invoke some code in a specific state's first frame and the last frame to trigger some ...
0
votes
1
answer
34
views
Multipurpose buttons
As in the title, I am trying to figure out how to use a button for multiple purposes in Unity.
In my specific case for instance, I am currently using the joystick button 0 (the A button) to perform a ...