/// <summary> /// Retrieves the current executing state /// </summary> /// <typeparam name="T">state type</typeparam> /// <returns><c>the state</c>, if state is available else <c>null</c></returns> public T GetCurrentState <T>() where T : IState { return(_fsm.GetCurrentState <T>()); }