Пример #1
0
    void Act()
    {
        isActing = true;
        float       input    = GetDistanceToNextObstacleNormalized();
        ActInputDto inputDto = new ActInputDto(new float[] { input });

        StartCoroutine(GannHttpClient.Act(id, inputDto, onActSuccess));
    }
Пример #2
0
 public static IEnumerator Act(string id, ActInputDto inputDto, Action <ActOutputDto> onSuccess)
 {
     return(PostRequest($"{baseUrl}/act/{id}", inputDto, onSuccess));
 }