/// <summary>Initialises the state.</summary> /// <param name="hovertank">The hover tank engine.</param> /// <param name="nextState">The state that will be set when PGet completes.</param> public void Initialise(Hovertank hovertank, State nextState) { oldx = (short) hovertank.px; hovertank.ClearKeys(); _nextState = nextState; }
/// <summary>Initialises the state.</summary> /// <param name="hovertank">The hover tank engine.</param> /// <param name="nextState">The state that will be set when Ack completes.</param> public void Initialise(Hovertank hovertank, State nextState) { hovertank.ClearKeys(); _nextState = nextState; }