|
|
|
|
|
|
{ |
|
|
|
public class StateTransition : IStateComponent |
|
|
|
{ |
|
|
|
private readonly State _targetState; |
|
|
|
private readonly StateCondition[] _conditions; |
|
|
|
private readonly int[] _resultGroups; |
|
|
|
private readonly bool[] _results; |
|
|
|
private State _targetState; |
|
|
|
private StateCondition[] _conditions; |
|
|
|
private int[] _resultGroups; |
|
|
|
private bool[] _results; |
|
|
|
internal StateTransition() { } |
|
|
|
{ |
|
|
|
Init(targetState, conditions, resultGroups); |
|
|
|
} |
|
|
|
|
|
|
|
internal void Init(State targetState, StateCondition[] conditions, int[] resultGroups = null) |
|
|
|
{ |
|
|
|
_targetState = targetState; |
|
|
|
_conditions = conditions; |
|
|
|