void Act() { isActing = true; float input = GetDistanceToNextObstacleNormalized(); ActInputDto inputDto = new ActInputDto(new float[] { input }); StartCoroutine(GannHttpClient.Act(id, inputDto, onActSuccess)); }
public static IEnumerator Act(string id, ActInputDto inputDto, Action <ActOutputDto> onSuccess) { return(PostRequest($"{baseUrl}/act/{id}", inputDto, onSuccess)); }