Answer the question
In order to leave comments, you need to log in
Who makes states like in unity?
Let's say there is a character (Player class), it contains the FSMPlayer object:
public class FSMPlayer
{
public AStatePlayer state; // текущее состояние
Dictionary<TypeStatePlayer, AStatePlayer > dict_states = new Dictionary<TypeStatePlayer, AStatePlayer >();
public enum TypeStatePlayer{.....}
public void State(TypeStatePlayer type){....}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question