// Start is called before the first frame update void Start() { if (startDeactive) { currentState = deActiveState; } else { currentState = idleState; } currentState.EnterState(this); }
public void ActivateSwitch() { currentState = idleState; currentState.EnterState(this); }
public void TransitionToState(InterBaseState state) { currentState = state; currentState.EnterState(this); }